Changeset 11218 in josm for trunk/src


Ignore:
Timestamp:
2016-11-04T17:58:48+01:00 (3 years ago)
Author:
Don-vip
Message:

sonar - fix various recent issues

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r11217 r11218  
    224224        }
    225225
    226         private List<Entry<String, List<Layer>>> groupLayersByName(Collection<Layer> layers) {
     226        private static List<Entry<String, List<Layer>>> groupLayersByName(Collection<Layer> layers) {
    227227            Map<String, List<Layer>> layerByName = layers.stream().collect(Collectors.groupingBy(x -> x.name));
    228228            return layerByName.entrySet().stream().sorted(Map.Entry.comparingByKey()).collect(Collectors.toList());
     
    247247    private ScaleList nativeScaleList;
    248248
    249     private String defaultLayer;
     249    private final String defaultLayer;
    250250
    251251    /**
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java

    r11162 r11218  
    373373     * @return the dot directory
    374374     */
    375     private File getDotDirectory() {
     375    private static File getDotDirectory() {
    376376        String dirName = "." + Main.pref.getJOSMDirectoryBaseName().toLowerCase(Locale.ENGLISH);
    377377        return new File(System.getProperty("user.home"), dirName);
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java

    r11191 r11218  
    100100         */
    101101        public FontEntry() {
     102            // Default constructor needed for construction by reflection
    102103        }
    103104
  • trunk/src/org/openstreetmap/josm/tools/Shortcut.java

    r11207 r11218  
    292292            }
    293293        }
    294     };
     294    }
    295295
    296296    // and here our modifier groups
Note: See TracChangeset for help on using the changeset viewer.