8079067: New version string scheme - Java2D
authorprr
Wed, 29 Apr 2015 12:57:24 -0700
changeset 30493 5b6e20b095f3
parent 30492 d9bee4d93913
child 30494 a245f4430b4c
8079067: New version string scheme - Java2D Reviewed-by: serb, jgodinez, iris
jdk/src/java.desktop/windows/classes/sun/java2d/windows/WindowsFlags.java
--- a/jdk/src/java.desktop/windows/classes/sun/java2d/windows/WindowsFlags.java	Wed Apr 29 10:25:49 2015 -0700
+++ b/jdk/src/java.desktop/windows/classes/sun/java2d/windows/WindowsFlags.java	Wed Apr 29 12:57:24 2015 -0700
@@ -126,7 +126,6 @@
     private static boolean disableRegistry;
     private static boolean magPresent;
     private static boolean setHighDPIAware;
-    private static String javaVersion;
     // TODO: other flags, including nopixfmt
 
     static {
@@ -240,17 +239,6 @@
                     getBooleanProp("sun.java2d.checkRegistry", false);
                 disableRegistry =
                     getBooleanProp("sun.java2d.disableRegistry", false);
-                javaVersion = System.getProperty("java.version");
-                if (javaVersion == null) {
-                    // Cannot be true, nonetheless...
-                    javaVersion = "default";
-                } else {
-                    int dashIndex = javaVersion.indexOf('-');
-                    if (dashIndex >= 0) {
-                        // an interim release; use only the part preceding the -
-                        javaVersion = javaVersion.substring(0, dashIndex);
-                    }
-                }
                 String dpiOverride = System.getProperty("sun.java2d.dpiaware");
                 if (dpiOverride != null) {
                     setHighDPIAware = dpiOverride.equalsIgnoreCase("true");