Ignore:
Timestamp:
2024-04-22T20:59:26+02:00 (4 weeks ago)
Author:
taylor.smock
Message:

Revert most var changes from r19048, fix most new compile warnings and checkstyle issues

Also, document why various ErrorProne checks were originally disabled and fix
generic SonarLint issues.

File:
1 edited

Legend:

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

    r18832 r19050  
    7777            TimeUnit.SECONDS,
    7878            // make queue of LIFO type - so recently requested tiles will be loaded first (assuming that these are which user is waiting to see)
    79             new LinkedBlockingDeque<Runnable>(),
     79            new LinkedBlockingDeque<>(),
    8080            Utils.newThreadFactory("JCS-downloader-%d", Thread.NORM_PRIORITY)
    8181            );
     
    323323        }
    324324        try (InputStream fileInputStream = Files.newInputStream(file.toPath())) {
    325             cacheData = createCacheEntry(Utils.readBytesFromStream(fileInputStream));
     325            cacheData = createCacheEntry(fileInputStream.readAllBytes());
    326326            cache.put(getCacheKey(), cacheData, attributes);
    327327            return true;
     
    394394                byte[] raw;
    395395                if (urlConn.getResponseCode() == HttpURLConnection.HTTP_OK) {
    396                     raw = Utils.readBytesFromStream(urlConn.getContent());
     396                    raw = urlConn.getContent().readAllBytes();
    397397                } else {
    398398                    raw = new byte[]{};
Note: See TracChangeset for help on using the changeset viewer.