Ignore:
Timestamp:
2018-05-26T19:36:19+02:00 (12 months ago)
Author:
Don-vip
Message:

SonarQube - fix minor code issues

Location:
trunk/src/org/openstreetmap/josm/gui/history
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java

    r12713 r13849  
    174174        } catch (OsmTransferException e) {
    175175            lastException = e;
    176             return;
    177176        }
    178177    }
  • trunk/src/org/openstreetmap/josm/gui/history/TagInfoViewer.java

    r13521 r13849  
    88import java.util.HashMap;
    99import java.util.Map;
    10 import java.util.function.Function;
     10import java.util.function.IntFunction;
    1111import java.util.function.Supplier;
    1212
     
    8080        JPopupMenu tagMenu = new JPopupMenu();
    8181
    82         Function<Integer, String> tagKeyFn = x -> (String) table.getValueAt(x, 0);
    83         Function<Integer, Map<String, Integer>> tagValuesFn = x -> {
     82        IntFunction<String> tagKeyFn = x -> (String) table.getValueAt(x, 0);
     83        IntFunction<Map<String, Integer>> tagValuesFn = x -> {
    8484            Map<String, Integer> map = new HashMap<>();
    8585            String key = tagTableModel.getValue((String) table.getValueAt(x, 0));
Note: See TracChangeset for help on using the changeset viewer.