Ignore:
Timestamp:
2019-05-02T04:33:57+02:00 (6 years ago)
Author:
Don-vip
Message:

checkstyle/PMD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/performance/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRendererPerformanceTestParent.java

    r14582 r15034  
    77import java.awt.image.BufferedImage;
    88import java.io.File;
    9 import java.io.FileInputStream;
    109import java.io.IOException;
    1110import java.io.InputStream;
     11import java.nio.file.Files;
     12import java.nio.file.Paths;
    1213
    1314import javax.imageio.ImageIO;
     
    8081        StyledMapRenderer.PREFERENCE_TEXT_ANTIALIASING.put("gasp");
    8182
    82         try (InputStream fisR = new FileInputStream("data_nodist/restriction.osm");
    83                 InputStream fisM = new FileInputStream("data_nodist/multipolygon.osm");
    84                 InputStream fisC = Compression.getUncompressedFileInputStream(new File("data_nodist/neubrandenburg.osm.bz2"));
    85                 InputStream fisO = Compression.getUncompressedFileInputStream(new File("data_nodist/overpass-download.osm.bz2"));) {
     83        try (InputStream fisR = Files.newInputStream(Paths.get("data_nodist/restriction.osm"));
     84             InputStream fisM = Files.newInputStream(Paths.get("data_nodist/multipolygon.osm"));
     85             InputStream fisC = Compression.getUncompressedFileInputStream(new File("data_nodist/neubrandenburg.osm.bz2"));
     86             InputStream fisO = Compression.getUncompressedFileInputStream(new File("data_nodist/overpass-download.osm.bz2"));) {
    8687            dsRestriction = OsmReader.parseDataSet(fisR, NullProgressMonitor.INSTANCE);
    8788            dsMultipolygon = OsmReader.parseDataSet(fisM, NullProgressMonitor.INSTANCE);
Note: See TracChangeset for help on using the changeset viewer.