Changeset 14108 in josm for trunk/src


Ignore:
Timestamp:
2018-08-08T21:05:54+02:00 (6 years ago)
Author:
Don-vip
Message:

SonarQube fixes

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/importexport/OsmChangeImporter.java

    r14101 r14108  
    7676        if (!hasOsmData && !hasNotes) {
    7777            // FIXME: remove UI stuff from IO subsystem
    78             GuiHelper.runInEDT(() -> {
     78            GuiHelper.runInEDT(() ->
    7979                JOptionPane.showMessageDialog(
    8080                        Main.parent,
    8181                        tr("No data found in file {0}.", associatedFile.getPath()),
    8282                        tr("Open OsmChange file"),
    83                         JOptionPane.INFORMATION_MESSAGE);
    84             });
     83                        JOptionPane.INFORMATION_MESSAGE)
     84            );
    8585        }
    8686    }
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/ConvertToDataLayerAction.java

    r14103 r14108  
    196196         * @return {@link TagConversionDialogResponse} containing the selection
    197197         */
    198         private TagConversionDialogResponse showTagConversionDialog(List<String> keys, List<String> listPos, List<String> listNeg) {
     198        private static TagConversionDialogResponse showTagConversionDialog(List<String> keys, List<String> listPos, List<String> listNeg) {
    199199            TagConversionDialogResponse res = new TagConversionDialogResponse(listPos, listNeg);
    200200            String lSel = Config.getPref().get(GPX_SETTING + ".last", "all");
  • trunk/src/org/openstreetmap/josm/io/OsmJsonReader.java

    r14099 r14108  
    139139    }
    140140
    141     private void readWayNodesAndTags(JsonObject item, Way w, Collection<Long> nodeIds) {
     141    private static void readWayNodesAndTags(JsonObject item, Way w, Collection<Long> nodeIds) {
    142142        for (JsonValue v : item.getJsonArray("nodes")) {
    143143            nodeIds.add(((JsonNumber) v).longValue());
Note: See TracChangeset for help on using the changeset viewer.