Changeset 8286 in josm


Ignore:
Timestamp:
2015-04-28T00:59:25+02:00 (9 years ago)
Author:
Don-vip
Message:

fix sonar squid:S1444 - "public static" fields should always be constant

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

Legend:

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

    r8176 r8286  
    5757     * maximum download threads that will be started
    5858     */
    59     public static IntegerProperty THREAD_LIMIT = new IntegerProperty("cache.jcs.max_threads", 10);
     59    public static final IntegerProperty THREAD_LIMIT = new IntegerProperty("cache.jcs.max_threads", 10);
    6060    private static Executor DOWNLOAD_JOB_DISPATCHER = new ThreadPoolExecutor(
    6161            2, // we have a small queue, so threads will be quickly started (threads are started only, when queue is full)
  • trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoader.java

    r8186 r8286  
    3232    public static final String PREFERENCE_PREFIX   = "imagery.tms.cache.";
    3333    // average tile size is about 20kb
    34     public static IntegerProperty MAX_OBJECTS_ON_DISK = new IntegerProperty(PREFERENCE_PREFIX + "max_objects_disk", 25000); // 25000 is around 500MB under this assumptions
     34    public static final IntegerProperty MAX_OBJECTS_ON_DISK = new IntegerProperty(PREFERENCE_PREFIX + "max_objects_disk", 25000); // 25000 is around 500MB under this assumptions
    3535
    3636
  • trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java

    r8176 r8286  
    4141     * overrides the THREAD_LIMIT in superclass, as we want to have separate limit and pool for TMS
    4242     */
    43     public static IntegerProperty THREAD_LIMIT = new IntegerProperty("imagery.tms.tmsloader.maxjobs", 25);
     43    public static final IntegerProperty THREAD_LIMIT = new IntegerProperty("imagery.tms.tmsloader.maxjobs", 25);
    4444    /**
    4545     * separate from JCS thread pool for TMS loader, so we can have different thread pools for default JCS
  • trunk/src/org/openstreetmap/josm/gui/ImageryMenu.java

    r7966 r8286  
    1515import java.util.Iterator;
    1616import java.util.List;
     17
    1718import javax.swing.Action;
    1819import javax.swing.JComponent;
     
    2223import javax.swing.event.MenuEvent;
    2324import javax.swing.event.MenuListener;
     25
    2426import org.openstreetmap.josm.Main;
    2527import org.openstreetmap.josm.actions.AddImageryLayerAction;
     
    4951     * (for the preferences). We don't want this in the imagery menu.
    5052     */
    51     public static Comparator<ImageryInfo> alphabeticImageryComparator = new Comparator<ImageryInfo>() {
     53    public static final Comparator<ImageryInfo> alphabeticImageryComparator = new Comparator<ImageryInfo>() {
    5254        @Override
    5355        public int compare(ImageryInfo ii1, ImageryInfo ii2) {
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r8285 r8286  
    145145     * @since 7132
    146146     */
    147     public static String PROP_TRANSPARENCY_FORCED = "josm.transparency.forced";
     147    public static final String PROP_TRANSPARENCY_FORCED = "josm.transparency.forced";
    148148
    149149    /**
     
    151151     * @since 7132
    152152     */
    153     public static String PROP_TRANSPARENCY_COLOR = "josm.transparency.color";
     153    public static final String PROP_TRANSPARENCY_COLOR = "josm.transparency.color";
    154154
    155155    /** directories in which images are searched */
Note: See TracChangeset for help on using the changeset viewer.