changeset 11866:90e539af6a64

8079067: New version string scheme - Java2D Reviewed-by: serb, jgodinez, iris
author prr
date Wed, 29 Apr 2015 12:57:24 -0700
parents 0bfbcc848706
children 13b1ca669311
files src/java.desktop/windows/classes/sun/java2d/windows/WindowsFlags.java
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/windows/classes/sun/java2d/windows/WindowsFlags.java	Wed Apr 29 10:25:49 2015 -0700
+++ b/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");