Changeset 8793 in josm for trunk/test/unit/org/openstreetmap/josm/TestUtils.java
- Timestamp:
- 2015-09-24T22:29:41+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/TestUtils.java
r8514 r8793 107 107 .toString(); 108 108 } 109 110 /** 111 * Returns the Java version as a double value. 112 * @return the Java version as a double value (1.7, 1.8, 1.9, etc.) 113 */ 114 public static double getJavaVersion() { 115 String version = System.getProperty("java.version"); 116 int pos = version.indexOf('.'); 117 pos = version.indexOf('.', pos + 1); 118 return Double.parseDouble(version.substring(0, pos)); 119 } 109 120 }
Note:
See TracChangeset
for help on using the changeset viewer.