Ignore:
Timestamp:
2016-09-22T23:08:23+02:00 (3 years ago)
Author:
simon04
Message:

Use CachedFile#getContentReader where possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r10469 r11042  
    44import java.io.BufferedReader;
    55import java.io.IOException;
    6 import java.io.InputStream;
    7 import java.io.InputStreamReader;
    8 import java.nio.charset.StandardCharsets;
    96import java.util.ArrayList;
    107import java.util.Collection;
     
    272269        try (
    273270            CachedFile cf = new CachedFile(path);
    274             InputStream in = cf.getInputStream();
    275             BufferedReader r = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8));
     271            BufferedReader r = cf.getContentReader()
    276272        ) {
    277273            return loadProjectionDefinitions(r);
Note: See TracChangeset for help on using the changeset viewer.