Changeset 9407 in josm
- Timestamp:
- 2016-01-11T03:31:44+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Version.java
r9019 r9407 58 58 try { 59 59 properties.load(revisionInfo); 60 revisionInfo.close();61 60 } catch (IOException e) { 62 61 Main.warn(tr("Error reading revision info from revision file: {0}", e.getMessage())); … … 111 110 */ 112 111 public void init() { 113 InputStream stream = Main.class.getResourceAsStream("/REVISION"); 114 if (stream == null) { 115 Main.warn(tr("The revision file ''/REVISION'' is missing.")); 116 version = 0; 117 releaseDescription = ""; 118 return; 119 } 120 initFromRevisionInfo(stream); 112 try (InputStream stream = Main.class.getResourceAsStream("/REVISION")) { 113 if (stream == null) { 114 Main.warn(tr("The revision file ''/REVISION'' is missing.")); 115 version = 0; 116 releaseDescription = ""; 117 return; 118 } 119 initFromRevisionInfo(stream); 120 } catch (IOException e) { 121 Main.warn(e); 122 } 121 123 } 122 124
Note:
See TracChangeset
for help on using the changeset viewer.