6647615: Sample code in ListResourceBundle is not correct and causes a compile error
Reviewed-by: peytoia
This commit is contained in:
parent
163e0575c4
commit
15d5f3b709
@ -72,7 +72,7 @@ import sun.util.ResourceBundleEnumeration;
|
|||||||
*
|
*
|
||||||
* public class MyResources extends ListResourceBundle {
|
* public class MyResources extends ListResourceBundle {
|
||||||
* protected Object[][] getContents() {
|
* protected Object[][] getContents() {
|
||||||
* return new Object[][] = {
|
* return new Object[][] {
|
||||||
* // LOCALIZE THIS
|
* // LOCALIZE THIS
|
||||||
* {"s1", "The disk \"{1}\" contains {0}."}, // MessageFormat pattern
|
* {"s1", "The disk \"{1}\" contains {0}."}, // MessageFormat pattern
|
||||||
* {"s2", "1"}, // location of {0} in pattern
|
* {"s2", "1"}, // location of {0} in pattern
|
||||||
|
Loading…
x
Reference in New Issue
Block a user