< prev index next >
src/java.desktop/share/classes/sun/awt/OSInfo.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2012, 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, 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
*** 38,47 ****
--- 38,48 ----
public static enum OSType {
WINDOWS,
LINUX,
SOLARIS,
MACOSX,
+ AIX,
UNKNOWN
}
/*
The map windowsVersionMap must contain all windows version constants except WINDOWS_UNKNOWN,
*** 105,114 ****
--- 106,119 ----
if (osName.contains("OS X")) {
return MACOSX;
}
+ if (osName.contains("AIX")) {
+ return AIX;
+ }
+
// determine another OS here
}
return UNKNOWN;
}
< prev index next >