changeset 1514:75fe05d49f44

6656610: AccessibleResourceBundle.getContents exposes mutable static (findbugs) Reviewed-by: hawtin
author asaha
date Mon, 22 Jun 2009 13:36:37 -0700
parents 94bd5497a0d3
children ffb8e36b668c
files src/share/classes/javax/accessibility/AccessibleResourceBundle.java
diffstat 1 files changed, 6 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/accessibility/AccessibleResourceBundle.java	Thu Jun 18 22:53:54 2009 -0700
+++ b/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
-    };
+        };
+    }
 }