6647615: Sample code in ListResourceBundle is not correct and causes a compile error

Reviewed-by: peytoia
This commit is contained in:
Naoto Sato 2010-12-08 15:15:45 -08:00
parent 163e0575c4
commit 15d5f3b709

View File

@ -72,7 +72,7 @@ import sun.util.ResourceBundleEnumeration;
*
* 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