From 0a94334b47cab1ce19028bde2ae01c2b1ab3c2ed Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 28 Feb 2008 05:07:28 +0000 Subject: [PATCH] *_NAMES are final --- bindings/java/src/org/hyperic/sigar/OperatingSystem.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/java/src/org/hyperic/sigar/OperatingSystem.java b/bindings/java/src/org/hyperic/sigar/OperatingSystem.java index d749fc7d..351521a8 100644 --- a/bindings/java/src/org/hyperic/sigar/OperatingSystem.java +++ b/bindings/java/src/org/hyperic/sigar/OperatingSystem.java @@ -34,7 +34,7 @@ public class OperatingSystem extends SysInfo { public static final String NAME_WIN32 = "Win32"; public static final String NAME_NETWARE = "NetWare"; - public static String[] UNIX_NAMES = { + public static final String[] UNIX_NAMES = { OperatingSystem.NAME_LINUX, OperatingSystem.NAME_SOLARIS, OperatingSystem.NAME_HPUX, @@ -43,7 +43,7 @@ public class OperatingSystem extends SysInfo { OperatingSystem.NAME_FREEBSD, }; - public static String[] WIN32_NAMES = { + public static final String[] WIN32_NAMES = { OperatingSystem.NAME_WIN32, }; @@ -52,7 +52,7 @@ public class OperatingSystem extends SysInfo { public static final boolean IS_WIN32 = System.getProperty("os.name").indexOf("Windows") != -1; - private static Map supportedPlatforms = new HashMap(); + private static final Map supportedPlatforms = new HashMap(); static { int len = UNIX_NAMES.length + WIN32_NAMES.length;