- Timestamp:
- 2018-03-12T22:32:42+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r13473 r13520 1575 1575 /** 1576 1576 * Returns the Java version as an int value. 1577 * @return the Java version as an int value (8, 9, etc.)1577 * @return the Java version as an int value (8, 9, 10, etc.) 1578 1578 * @since 12130 1579 1579 */ … … 1591 1591 int dashPos = version.indexOf('-'); 1592 1592 return Integer.parseInt(version.substring(0, 1593 dotPos > -1 ? dotPos : dashPos > -1 ? dashPos : 1));1593 dotPos > -1 ? dotPos : dashPos > -1 ? dashPos : version.length())); 1594 1594 } 1595 1595
Note:
See TracChangeset
for help on using the changeset viewer.