提交 e62aae22 编写于 作者: A asaha

6656610: AccessibleResourceBundle.getContents exposes mutable static (findbugs)

Reviewed-by: hawtin
上级 dd657366
...@@ -44,15 +44,11 @@ public class AccessibleResourceBundle extends ListResourceBundle { ...@@ -44,15 +44,11 @@ public class AccessibleResourceBundle extends ListResourceBundle {
* localized display strings. * localized display strings.
*/ */
public Object[][] getContents() { 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[][] {
/** // LOCALIZE THIS
* The table holding the mapping between the programmatic keys
* and the display strings for the en_US locale.
*/
static final Object[][] contents = {
// LOCALIZE THIS
// Role names // Role names
// { "application","application" }, // { "application","application" },
// { "border","border" }, // { "border","border" },
...@@ -151,5 +147,6 @@ public class AccessibleResourceBundle extends ListResourceBundle { ...@@ -151,5 +147,6 @@ public class AccessibleResourceBundle extends ListResourceBundle {
{ "vertical","vertical" }, { "vertical","vertical" },
{ "horizontal","horizontal" } { "horizontal","horizontal" }
// END OF MATERIAL TO LOCALIZE // END OF MATERIAL TO LOCALIZE
}; };
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册