Changeset 6268 in josm for trunk/src/org/openstreetmap/josm/data/projection/Projections.java
- Timestamp:
- 2013-09-27T19:50:29+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/Projections.java
r6248 r6268 33 33 import org.openstreetmap.josm.io.MirroredInputStream; 34 34 import org.openstreetmap.josm.tools.Pair; 35 import org.openstreetmap.josm.tools.Utils; 35 36 36 37 /** … … 125 126 private static void loadInits() { 126 127 Pattern epsgPattern = Pattern.compile("<(\\d+)>(.*)<>"); 128 BufferedReader r = null; 127 129 try { 128 130 InputStream in = new MirroredInputStream("resource://data/epsg"); 129 BufferedReaderr = new BufferedReader(new InputStreamReader(in));131 r = new BufferedReader(new InputStreamReader(in)); 130 132 String line, lastline = ""; 131 133 while ((line = r.readLine()) != null) { … … 144 146 } 145 147 } catch (IOException ex) { 146 throw new RuntimeException(); 148 throw new RuntimeException(ex); 149 } finally { 150 Utils.close(r); 147 151 } 148 152 }
Note:
See TracChangeset
for help on using the changeset viewer.