# HG changeset patch # User naoto # Date 1291850145 28800 # Node ID bc1ab1b3162298848595c002b808bef6312331e5 # Parent 9e49cbe70fb24a5fcf34a3c7322fd5bd5688f60f 6647615: Sample code in ListResourceBundle is not correct and causes a compile error. Reviewed-by: peytoia diff -r 9e49cbe70fb2 -r bc1ab1b31622 jdk/src/share/classes/java/util/ListResourceBundle.java --- a/jdk/src/share/classes/java/util/ListResourceBundle.java Wed Dec 08 18:05:30 2010 +0900 +++ b/jdk/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