Reviewers: jat,
Description:
Issue 7062: documentation uses @DefaultText instead of @DefaultMessage
Please review this at https://gwt-code-reviews.appspot.com/1766803/
Affected files:
M user/src/com/google/gwt/i18n/client/Messages.java
M user/src/com/google/gwt/i18n/rebind/AnnotationsResource.java
Index: user/src/com/google/gwt/i18n/client/Messages.java
diff --git a/user/src/com/google/gwt/i18n/client/Messages.java
b/user/src/com/google/gwt/i18n/client/Messages.java
index
d4423490c6c799977cb940f1e5b74c5b6da4ee9d..22d93a1199be17b226c5b0004f643c61205b3d98
100644
--- a/user/src/com/google/gwt/i18n/client/Messages.java
+++ b/user/src/com/google/gwt/i18n/client/Messages.java
@@ -129,17 +129,17 @@ import java.lang.annotation.Target;
* @DefaultLocale("en_US")
* public interface MyMessages extends Messages {
* @Key("1234")
- * @DefaultText("This is a plain string.")
+ * @DefaultMessage("This is a plain string.")
* String oneTwoThreeFour();
*
- * @DefaultText("You have {0} widgets")
+ * @DefaultMessage("You have {0} widgets")
* @PluralText({"one", "You have one widget")
* String widgetCount(@PluralCount int count);
*
- * @DefaultText("No reference to the argument")
+ * @DefaultMessage("No reference to the argument")
* String optionalArg(@Optional String ignored);
*
- * @DefaultText("Your cart total is {0,number,currency}")
+ * @DefaultMessage("Your cart total is {0,number,currency}")
* @Description("The total value of the items in the shopping cart
in local currency")
* String totalAmount(@Example("$5.00") double amount);
*
Index: user/src/com/google/gwt/i18n/rebind/AnnotationsResource.java
diff --git a/user/src/com/google/gwt/i18n/rebind/AnnotationsResource.java
b/user/src/com/google/gwt/i18n/rebind/AnnotationsResource.java
index
8fde38c3dd81143688d7c20cd376329cad0ef710..90ee6330c14d8b5427ecdffa080ee3b535d7b792
100644
--- a/user/src/com/google/gwt/i18n/rebind/AnnotationsResource.java
+++ b/user/src/com/google/gwt/i18n/rebind/AnnotationsResource.java
@@ -335,7 +335,7 @@ public class AnnotationsResource extends
AbstractResource {
if (!isConstants) {
if (constantsCount > 0) {
throw new AnnotationsError(
- "@Default*Value is not permitted on a Messages interface; see
@DefaultText");
+ "@Default*Value is not permitted on a Messages interface; see
@DefaultMessage");
}
if (defaultText != null) {
return defaultText.value();
@@ -343,7 +343,7 @@ public class AnnotationsResource extends
AbstractResource {
} else {
if (defaultText != null) {
throw new AnnotationsError(
- "@DefaultText is not permitted on a Constants interface; see
@Default*Value");
+ "@DefaultMessage is not permitted on a Constants interface;
see @Default*Value");
}
if (constantsCount > 1) {
throw new AnnotationsError(
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors