changeset 7213:50fde3eeb48c

7056126: DateFormatSymbols documentation has incorrect description about DateFormat 7083668: Sample code in ListResourceBundle is still not correct Reviewed-by: okutsu
author naoto
date Wed, 22 May 2013 16:43:04 -0700
parents 760d4187597a
children a1a8e71e130a
files src/share/classes/java/text/DateFormatSymbols.java src/share/classes/java/util/ListResourceBundle.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/text/DateFormatSymbols.java	Wed May 22 12:09:45 2013 -0700
+++ b/src/share/classes/java/text/DateFormatSymbols.java	Wed May 22 16:43:04 2013 -0700
@@ -59,7 +59,7 @@
  * <code>DateFormatSymbols</code> is a public class for encapsulating
  * localizable date-time formatting data, such as the names of the
  * months, the names of the days of the week, and the time zone data.
- * <code>DateFormat</code> and <code>SimpleDateFormat</code> both use
+ * <code>SimpleDateFormat</code> uses
  * <code>DateFormatSymbols</code> to encapsulate this information.
  *
  * <p>
--- a/src/share/classes/java/util/ListResourceBundle.java	Wed May 22 12:09:45 2013 -0700
+++ b/src/share/classes/java/util/ListResourceBundle.java	Wed May 22 16:43:04 2013 -0700
@@ -89,7 +89,7 @@
  *
  * public class MyResources_fr extends ListResourceBundle {
  *     protected Object[][] getContents() {
- *         return new Object[][] = {
+ *         return new Object[][] {
  *         // LOCALIZE THIS
  *             {"s1", "Le disque \"{1}\" {0}."},          // MessageFormat pattern
  *             {"s2", "1"},                               // location of {0} in pattern