Ignore:
Timestamp:
2016-06-15T10:30:37+02:00 (8 years ago)
Author:
Don-vip
Message:

Checkstyle 6.19: enable SingleSpaceSeparator and fix violations

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

Legend:

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

    r9070 r10378  
    9292        String val = attrs.get(key);
    9393        if (val == null) {
    94             attrs.put(key,  "0");
     94            attrs.put(key, "0");
    9595            return 0;
    9696        }
  • trunk/src/org/openstreetmap/josm/data/cache/HostLimitQueue.java

    r9004 r10378  
    100100    }
    101101
    102     private  Semaphore getSemaphore(JCSCachedTileLoaderJob<?, ?> job) {
     102    private Semaphore getSemaphore(JCSCachedTileLoaderJob<?, ?> job) {
    103103        String host;
    104104        try {
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java

    r10323 r10378  
    4242
    4343    private static volatile CompositeCacheManager cacheManager;
    44     private static long maxObjectTTL        = -1;
     44    private static long maxObjectTTL = -1;
    4545    private static final String PREFERENCE_PREFIX = "jcs.cache";
    4646    private static BooleanProperty USE_BLOCK_CACHE = new BooleanProperty(PREFERENCE_PREFIX + ".use_block_cache", true);
     
    5353     * default objects to be held in memory by JCS caches (per region)
    5454     */
    55     public static final IntegerProperty DEFAULT_MAX_OBJECTS_IN_MEMORY  = new IntegerProperty(PREFERENCE_PREFIX + ".max_objects_in_memory", 1000);
     55    public static final IntegerProperty DEFAULT_MAX_OBJECTS_IN_MEMORY = new IntegerProperty(PREFERENCE_PREFIX + ".max_objects_in_memory", 1000);
    5656
    5757    private JCSCacheManager() {
     
    114114        // these are default common to all cache regions
    115115        // use of auxiliary cache and sizing of the caches is done with giving proper geCache(...) params
     116        // CHECKSTYLE.OFF: SingleSpaceSeparator
    116117        props.setProperty("jcs.default.cacheattributes",                      CompositeCacheAttributes.class.getCanonicalName());
    117118        props.setProperty("jcs.default.cacheattributes.MaxObjects",           DEFAULT_MAX_OBJECTS_IN_MEMORY.get().toString());
     
    123124        props.setProperty("jcs.default.elementattributes.IdleTime",           Long.toString(maxObjectTTL));
    124125        props.setProperty("jcs.default.elementattributes.IsSpool",            "true");
     126        // CHECKSTYLE.ON: SingleSpaceSeparator
    125127        CompositeCacheManager cm = CompositeCacheManager.getUnconfiguredInstance();
    126128        cm.configure(props);
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java

    r10308 r10378  
    313313            final HttpClient request = getRequest("GET", true);
    314314
    315             if (isObjectLoadable()  &&
     315            if (isObjectLoadable() &&
    316316                    (now - attributes.getLastModification()) <= ABSOLUTE_EXPIRE_TIME_LIMIT) {
    317317                request.setIfModifiedSince(attributes.getLastModification());
     
    397397        } catch (InterruptedException e) {
    398398            attributes.setErrorMessage(e.toString());
    399             log.log(Level.WARNING, "JCS - Exception during download {0}",  getUrlNoException());
     399            log.log(Level.WARNING, "JCS - Exception during download {0}", getUrlNoException());
    400400            Main.warn(e);
    401401        }
Note: See TracChangeset for help on using the changeset viewer.