Changeset 16099 in josm for trunk


Ignore:
Timestamp:
2020-03-09T00:35:03+01:00 (4 years ago)
Author:
simon04
Message:

ProjectionRegressionTest: use Files.newBufferedReader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java

    r16006 r16099  
    55import java.io.BufferedWriter;
    66import java.io.File;
    7 import java.io.FileNotFoundException;
    87import java.io.IOException;
    9 import java.io.InputStreamReader;
    108import java.io.OutputStreamWriter;
    119import java.nio.charset.StandardCharsets;
     
    113111    }
    114112
    115     private static List<TestData> readData() throws IOException, FileNotFoundException {
    116         try (BufferedReader in = new BufferedReader(new InputStreamReader(Files.newInputStream(Paths.get(PROJECTION_DATA_FILE)),
    117                 StandardCharsets.UTF_8))) {
     113    private static List<TestData> readData() throws IOException {
     114        try (BufferedReader in = Files.newBufferedReader(Paths.get(PROJECTION_DATA_FILE), StandardCharsets.UTF_8)) {
    118115            List<TestData> result = new ArrayList<>();
    119116            String line;
Note: See TracChangeset for help on using the changeset viewer.