Skip to content

Commit

Permalink
SonarQube fixes
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@14108 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
don-vip committed Aug 8, 2018
1 parent 10a565d commit 5014697
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ protected void importData(InputStream in, final File associatedFile, ProgressMon
}
if (!hasOsmData && !hasNotes) {
// FIXME: remove UI stuff from IO subsystem
GuiHelper.runInEDT(() -> {
GuiHelper.runInEDT(() ->
JOptionPane.showMessageDialog(
Main.parent,
tr("No data found in file {0}.", associatedFile.getPath()),
tr("Open OsmChange file"),
JOptionPane.INFORMATION_MESSAGE);
});
JOptionPane.INFORMATION_MESSAGE)
);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public DataSet filterDataSet(DataSet ds, List<String> listPos) {
* @param listNeg The keys that were previously unselected
* @return {@link TagConversionDialogResponse} containing the selection
*/
private TagConversionDialogResponse showTagConversionDialog(List<String> keys, List<String> listPos, List<String> listNeg) {
private static TagConversionDialogResponse showTagConversionDialog(List<String> keys, List<String> listPos, List<String> listNeg) {
TagConversionDialogResponse res = new TagConversionDialogResponse(listPos, listNeg);
String lSel = Config.getPref().get(GPX_SETTING + ".last", "all");

Expand Down
2 changes: 1 addition & 1 deletion src/org/openstreetmap/josm/io/OsmJsonReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private void parseWay(JsonObject item) throws IllegalDataException {
parseWay(wd -> readCommon(item, wd), (w, nodeIds) -> readWayNodesAndTags(item, w, nodeIds));
}

private void readWayNodesAndTags(JsonObject item, Way w, Collection<Long> nodeIds) {
private static void readWayNodesAndTags(JsonObject item, Way w, Collection<Long> nodeIds) {
for (JsonValue v : item.getJsonArray("nodes")) {
nodeIds.add(((JsonNumber) v).longValue());
}
Expand Down

0 comments on commit 5014697

Please sign in to comment.