changeset 3191:07f5669f1231

6647615: Sample code in ListResourceBundle is not correct and causes a compile error. Reviewed-by: peytoia
author naoto
date Wed, 08 Dec 2010 15:15:45 -0800
parents 230822c90868
children 4c10246b3f62
files src/share/classes/java/util/ListResourceBundle.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/ListResourceBundle.java	Wed Dec 08 18:05:30 2010 +0900
+++ b/src/share/classes/java/util/ListResourceBundle.java	Wed Dec 08 15:15:45 2010 -0800
@@ -72,7 +72,7 @@
  *
  * public class MyResources extends ListResourceBundle {
  *     protected Object[][] getContents() {
- *         return new Object[][] = {
+ *         return new Object[][] {
  *         // LOCALIZE THIS
  *             {"s1", "The disk \"{1}\" contains {0}."},  // MessageFormat pattern
  *             {"s2", "1"},                               // location of {0} in pattern