Ignore:
Timestamp:
2014-04-29T03:24:57+02:00 (6 years ago)
Author:
Don-vip
Message:

Sonar - fix various issues

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java

    r7005 r7025  
    2929
    3030    private static final List<Proxy> NO_PROXY_LIST = Collections.singletonList(Proxy.NO_PROXY);
     31   
     32    private static final String IPV4_LOOPBACK = "127.0.0.1";
     33    private static final String IPV6_LOOPBACK = "::1";
    3134
    3235    /**
     
    142145        proxyExceptions = new HashSet<>(
    143146            Main.pref.getCollection(ProxyPreferencesPanel.PROXY_EXCEPTIONS,
    144                     Arrays.asList(new String[]{"localhost", "127.0.0.1"}))
     147                    Arrays.asList(new String[]{"localhost", IPV4_LOOPBACK, IPV6_LOOPBACK}))
    145148        );
    146149    }
  • trunk/src/org/openstreetmap/josm/io/OsmChangeReader.java

    r7012 r7025  
    2222     * List of possible actions.
    2323     */
    24     public static final String[] ACTIONS = {"create", "modify", "delete"};
     24    private static final String[] ACTIONS = {"create", "modify", "delete"};
    2525
    2626    /**
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r7013 r7025  
    5555
    5656    /** Used by plugins to register themselves as data postprocessors. */
    57     public static List<OsmServerReadPostprocessor> postprocessors;
     57    private static List<OsmServerReadPostprocessor> postprocessors;
    5858
    5959    /** register a new postprocessor */
Note: See TracChangeset for help on using the changeset viewer.