6647615: Sample code in ListResourceBundle is not correct and causes a compile error.
authornaoto
Wed, 08 Dec 2010 15:15:45 -0800
changeset 7506 bc1ab1b31622
parent 7505 9e49cbe70fb2
child 7507 d138864de4a6
6647615: Sample code in ListResourceBundle is not correct and causes a compile error. Reviewed-by: peytoia
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