Ignore:
Timestamp:
2018-05-13T09:15:34+02:00 (8 years ago)
Author:
wiktorn
Message:

Checkstyle fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJobTest.java

    r13733 r13742  
    6868        private String key;
    6969
    70         TestCachedTileLoaderJob(TileLoaderListener listener, Tile tile, String key) throws IOException  {
    71             this(listener, tile, key,  (int) TimeUnit.DAYS.toSeconds(1));
    72         }
    73 
    74         TestCachedTileLoaderJob(TileLoaderListener listener, Tile tile, String key, int minimumExpiry) throws IOException  {
     70        TestCachedTileLoaderJob(TileLoaderListener listener, Tile tile, String key) throws IOException {
     71            this(listener, tile, key, (int) TimeUnit.DAYS.toSeconds(1));
     72        }
     73
     74        TestCachedTileLoaderJob(TileLoaderListener listener, Tile tile, String key, int minimumExpiry) throws IOException {
    7575            super(listener, tile, getCache(), new TileJobOptions(30000, 30000, null, minimumExpiry),
    7676                    (ThreadPoolExecutor) Executors.newFixedThreadPool(1));
     
    104104                return false;
    105105            }
    106             return cacheData.getContent().length > 0;        }
     106            return cacheData.getContent().length > 0;
     107        }
    107108    }
    108109
     
    112113        private byte[] data;
    113114
    114 
    115115        @Override
    116116        public synchronized void tileLoadingFinished(Tile tile, boolean success) {
     
    129129        private final String url;
    130130
    131         public MockTileSource(String url) {
     131        MockTileSource(String url) {
    132132            super(new ImageryInfo("mock"));
    133133            this.url = url;
     
    191191    /**
    192192     * When tile server doesn't return any Expires/Cache-Control headers, expire should be at least MINIMUM_EXPIRES
    193      * @throws IOException
     193     * @throws IOException exception
    194194     */
    195195    @Test
     
    214214    /**
    215215     * When tile server doesn't return any Expires/Cache-Control headers, expire should be at least minimumExpires parameter
    216      * @throws IOException
     216     * @throws IOException exception
    217217     */
    218218    @Test
     
    224224     * When tile server doesn't return any Expires/Cache-Control headers, expire should be at least minimumExpires parameter,
    225225     * which is larger than MAXIMUM_EXPIRES
    226      * @throws IOException
     226     * @throws IOException exception
    227227     */
    228228
     
    251251    /**
    252252     * When tile server returns Expires header shorter than MINIMUM_EXPIRES, we should cache if for at least MINIMUM_EXPIRES
    253      * @throws IOException
     253     * @throws IOException exception
    254254     */
    255255    @Test
     
    288288                job.getAttributes().getExpirationTime() <= duration);
    289289    }
    290 
    291290
    292291    @Test
Note: See TracChangeset for help on using the changeset viewer.