< prev index next >

src/java.desktop/share/classes/sun/awt/OSInfo.java

Print this page
rev 59383 : [mq]: final

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -36,11 +36,10 @@
  */
 public class OSInfo {
     public static enum OSType {
         WINDOWS,
         LINUX,
-        SOLARIS,
         MACOSX,
         AIX,
         UNKNOWN
     }
 

@@ -98,14 +97,10 @@
 
             if (osName.contains("Linux")) {
                 return LINUX;
             }
 
-            if (osName.contains("Solaris") || osName.contains("SunOS")) {
-                return SOLARIS;
-            }
-
             if (osName.contains("OS X")) {
                 return MACOSX;
             }
 
             if (osName.contains("AIX")) {
< prev index next >