6656610: AccessibleResourceBundle.getContents exposes mutable static (findbugs)
authorasaha
Mon, 22 Jun 2009 13:36:37 -0700
changeset 3461 cbc3dfc3b609
parent 3460 9ffe320f9bf0
child 3462 4477fb399895
6656610: AccessibleResourceBundle.getContents exposes mutable static (findbugs) Reviewed-by: hawtin
jdk/src/share/classes/javax/accessibility/AccessibleResourceBundle.java
--- a/jdk/src/share/classes/javax/accessibility/AccessibleResourceBundle.java	Thu Jun 18 22:53:54 2009 -0700
+++ b/jdk/src/share/classes/javax/accessibility/AccessibleResourceBundle.java	Mon Jun 22 13:36:37 2009 -0700
@@ -44,15 +44,11 @@
      * localized display strings.
      */
     public Object[][] getContents() {
-        return contents;
-    }
+        // The table holding the mapping between the programmatic keys
+        // and the display strings for the en_US locale.
+        return new Object[][] {
 
-    /**
-     * The table holding the mapping between the programmatic keys
-     * and the display strings for the en_US locale.
-     */
-    static final Object[][] contents = {
-    // LOCALIZE THIS
+        // LOCALIZE THIS
         // Role names
 //        { "application","application" },
 //        { "border","border" },
@@ -151,5 +147,6 @@
         { "vertical","vertical" },
         { "horizontal","horizontal" }
     // END OF MATERIAL TO LOCALIZE
-    };
+        };
+    }
 }