Ignore:
Timestamp:
2024-08-12T17:35:51+02:00 (3 months ago)
Author:
taylor.smock
Message:

Fix some coverity issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledTiledMapRenderer.java

    r19176 r19180  
    251251        temporaryView.zoomTo(bounds.getCenter().getEastNorth(ProjectionRegistry.getProjection()), mapState.getScale());
    252252        BufferedImage bufferedImage = Optional.ofNullable(nc.getGraphicsConfiguration())
    253                 .map(gc -> gc.createCompatibleImage(tileSize * xCount + xCount, tileSize * yCount + xCount, Transparency.TRANSLUCENT))
    254                 .orElseGet(() -> new BufferedImage(tileSize * xCount + xCount, tileSize * yCount + xCount, BufferedImage.TYPE_INT_ARGB));
     253                .map(gc -> gc.createCompatibleImage(tileSize * xCount + xCount, tileSize * yCount + yCount, Transparency.TRANSLUCENT))
     254                .orElseGet(() -> new BufferedImage(tileSize * xCount + xCount, tileSize * yCount + yCount, BufferedImage.TYPE_INT_ARGB));
    255255        Graphics2D g2d = bufferedImage.createGraphics();
    256256        try {
     
    335335         * @param tImage The tile image for this job
    336336         */
    337         private synchronized void cacheTile(BufferedImage tImage) {
     337        private void cacheTile(BufferedImage tImage) {
    338338            cache.put(tile, new ImageCache(tImage, null, false));
    339339            done = true;
Note: See TracChangeset for help on using the changeset viewer.