Ignore:
Timestamp:
2015-10-13T23:50:14+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S2325 - "private" methods that don't access instance data should be "static"

File:
1 edited

Legend:

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

    r8846 r8870  
    689689    }
    690690
    691     private void addPossibleResourceDir(Set<String> locations, String s) {
     691    private static void addPossibleResourceDir(Set<String> locations, String s) {
    692692        if (s != null) {
    693693            if (!s.endsWith(File.separator)) {
     
    867867    }
    868868
    869     private void setCorrectPermissions(File file) {
     869    private static void setCorrectPermissions(File file) {
    870870        if (!file.setReadable(false, false) && Main.isDebugEnabled()) {
    871871            Main.debug(tr("Unable to set file non-readable {0}", file.getAbsolutePath()));
     
    13371337    }
    13381338
    1339     private <T> Collection<Map<String, String>> serializeListOfStructs(Collection<T> l, Class<T> klass) {
     1339    private static <T> Collection<Map<String, String>> serializeListOfStructs(Collection<T> l, Class<T> klass) {
    13401340        if (l == null)
    13411341            return null;
Note: See TracChangeset for help on using the changeset viewer.