Changeset 9639 in josm
- Timestamp:
- 2016-01-26T19:21:58+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java
r9067 r9639 52 52 public NTV2GridShiftFile getShiftFile() { 53 53 if (instance == null) { 54 try ( InputStream is = new CachedFile(gridFileName).getInputStream()) {54 try (CachedFile cf = new CachedFile(gridFileName); InputStream is = cf.getInputStream()) { 55 55 instance = new NTV2GridShiftFile(); 56 56 instance.loadGridShiftFile(is, false); -
trunk/src/org/openstreetmap/josm/tools/FontsManager.java
r8882 r9639 38 38 for (String fontFile : INCLUDED_FONTS) { 39 39 String url = "resource://data/fonts/"+fontFile; 40 try ( InputStream i = new CachedFile(url).getInputStream()) {40 try (CachedFile cf = new CachedFile(url); InputStream i = cf.getInputStream()) { 41 41 ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, i)); 42 42 } catch (IOException | FontFormatException ex) { -
trunk/src/org/openstreetmap/josm/tools/RightAndLefthandTraffic.java
r9070 r9639 72 72 private static void initialize() { 73 73 leftHandTrafficPolygons = new ArrayList<>(); 74 try (InputStream is = new CachedFile("resource://data/left-right-hand-traffic.osm").getInputStream()) { 74 try (CachedFile cf = new CachedFile("resource://data/left-right-hand-traffic.osm"); 75 InputStream is = cf.getInputStream()) { 75 76 DataSet data = OsmReader.parseDataSet(is, null); 76 77 for (Way w : data.getWays()) {
Note:
See TracChangeset
for help on using the changeset viewer.