< prev index next >
src/java.desktop/share/classes/sun/awt/OSInfo.java
Print this page
rev 59383 : [mq]: final
*** 1,7 ****
/*
! * Copyright (c) 1997, 2019, 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
--- 1,7 ----
/*
! * 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,46 ****
*/
public class OSInfo {
public static enum OSType {
WINDOWS,
LINUX,
- SOLARIS,
MACOSX,
AIX,
UNKNOWN
}
--- 36,45 ----
*** 98,111 ****
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")) {
--- 97,106 ----
< prev index next >