Changeset 19139 in josm for trunk/scripts


Ignore:
Timestamp:
2024-07-12T13:36:39+02:00 (3 months ago)
Author:
taylor.smock
Message:

PMD and checkstyle fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.java

    r19137 r19139  
    283283        if (outputStream != null) {
    284284            try {
    285                 outputStream.write(s + System.getProperty("line.separator"));
     285                outputStream.write(s + System.lineSeparator());
    286286            } catch (IOException e) {
    287287                throw new JosmRuntimeException(e);
     
    386386        myprintln("*** Loaded "+eliEntries.size()+" entries (ELI). ***");
    387387    }
     388
    388389    void loadELIUsers() throws IOException {
    389390        try (JsonReader jr = Json.createReader(Files.newBufferedReader(Paths.get(idInputFile), UTF_8))) {
     
    635636            for (String l : le) {
    636637                String e = "";
    637                 if(idUrls.get(l) != null && rapidUrls.get(l) != null)
     638                if (idUrls.get(l) != null && rapidUrls.get(l) != null)
    638639                    e = " **iD+Rapid**";
    639                 else if(idUrls.get(l) != null)
     640                else if (idUrls.get(l) != null)
    640641                    e = " **iD**";
    641                 else if(rapidUrls.get(l) != null)
     642                else if (rapidUrls.get(l) != null)
    642643                    e = " **Rapid**";
    643644                myprintln("-  " + getDescription(eliUrls.get(l)) + e);
     
    13721373            return p.getString("url");
    13731374        else
    1374             return ((JsonObject)e).getString("template");
     1375            return ((JsonObject) e).getString("template");
    13751376    }
    13761377
Note: See TracChangeset for help on using the changeset viewer.