Ignore:
Timestamp:
2015-05-03T18:34:33+02:00 (9 years ago)
Author:
Don-vip
Message:

fix various Sonar issues:

  • squid:S1068: Unused private fields should be removed
  • squid:S1155: Collection.isEmpty() should be used to test for emptiness
  • squid:S1185: Overriding methods should do more than simply call the same method in the super class
  • squid:S1694: An abstract class should have both abstract and concrete methods
  • squid:S1905: Redundant casts should not be used
  • squid:S2065: Fields in non-serializable classes should not be "transient"
  • squid:S2583: Conditions should not unconditionally evaluate to "TRUE" or to "FALSE"
  • squid:ModifiersOrderCheck: Modifiers should be declared in the correct order
File:
1 edited

Legend:

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

    r8314 r8318  
    3232 *
    3333 * Class bridging TMS requests to JCS cache requests
    34  *
     34 * @since 8168
    3535 */
    3636public class TMSCachedTileLoaderJob extends JCSCachedTileLoaderJob<String, BufferedImageCacheEntry> implements TileJob, ICachedLoaderListener  {
     
    4343     * Limit definition for per host concurrent connections
    4444     */
    45     public final static IntegerProperty HOST_LIMIT = new IntegerProperty("imagery.tms.tmsloader.maxjobsperhost", 6);
     45    public static final IntegerProperty HOST_LIMIT = new IntegerProperty("imagery.tms.tmsloader.maxjobsperhost", 6);
    4646
    4747     /*
     
    7777        }
    7878        return ret;
    79 
    8079    }
    8180
     
    8786    }
    8887
    89 
    9088    private static Map<String, Semaphore> HOST_LIMITS = new ConcurrentHashMap<>();
    9189
     
    9391     * overrides the THREAD_LIMIT in superclass, as we want to have separate limit and pool for TMS
    9492     */
    95     public final static IntegerProperty THREAD_LIMIT = new IntegerProperty("imagery.tms.tmsloader.maxjobs", 25);
     93    public static final IntegerProperty THREAD_LIMIT = new IntegerProperty("imagery.tms.tmsloader.maxjobs", 25);
    9694
    9795    /**
Note: See TracChangeset for help on using the changeset viewer.