Changeset 19139 in josm


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

PMD and checkstyle fixes

Location:
trunk
Files:
3 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
  • trunk/src/org/openstreetmap/josm/gui/progress/swing/ProgressMonitorExecutor.java

    r18549 r19139  
    1515/**
    1616 * Executor that displays the progress monitor to the user.
    17  *
     17 * <p>
    1818 * Similar to Executors.newSingleThreadExecutor(), but displays the
    1919 * progress monitor whenever a new task is executed.
     
    2929    public ProgressMonitorExecutor(final String nameFormat, final int threadPriority) {
    3030        super(1, 1, 0L, TimeUnit.MILLISECONDS,
    31                 new LinkedBlockingQueue<Runnable>(),
     31                new LinkedBlockingQueue<>(),
    3232                Utils.newThreadFactory(nameFormat, threadPriority));
    3333    }
  • trunk/src/org/openstreetmap/josm/tools/PlatformHook.java

    r19120 r19139  
    404404        if (missingArguments.length() > 0) {
    405405            final String args = missingArguments.toString();
    406             messages.add(tr("Missing JVM Arguments:<br>{0}<br>These arguments should be added in the command line or start script before the -jar parameter.", args));
     406            messages.add(tr("Missing JVM Arguments:<br>{0}<br>" +
     407                    "These arguments should be added in the command line or start script before the -jar parameter.", args));
    407408        }
    408409        if (!messages.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.