Ignore:
Timestamp:
2015-09-24T22:29:41+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #11889 - adapt projection regression test to Java 9. Safe approach: keep exact comparison but duplicate data files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/TestUtils.java

    r8514 r8793  
    107107        .toString();
    108108    }
     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    }
    109120}
Note: See TracChangeset for help on using the changeset viewer.