Author: tellison
Date: Tue Sep 26 04:52:41 2006
New Revision: 450005
URL: http://svn.apache.org/viewvc?view=rev&rev=450005
Log:
Apply patch HARMONY-1325 ([classlib][internationalization]Internationalization of the annotation
module)
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationTypeMismatchException.java
incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/IncompleteAnnotationException.java
incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/org/apache/harmony/annotation/internal/nls/messages.properties
Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationTypeMismatchException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationTypeMismatchException.java?view=diff&rev=450005&r1=450004&r2=450005
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationTypeMismatchException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/AnnotationTypeMismatchException.java
Tue Sep 26 04:52:41 2006
@@ -19,6 +19,8 @@
import java.lang.reflect.Method;
+import org.apache.harmony.annotation.internal.nls.Messages;
+
/**
* <p>
* Indicates that an annotation type has changed since it was compiled or
@@ -44,8 +46,7 @@
* @param foundType The invalid type that was found.
*/
public AnnotationTypeMismatchException(Method element, String foundType) {
- super("The annotation element, " + element
- + ", doesn't match the type " + foundType + ".");
+ super(Messages.getString("annotation.1", element, foundType)); //$NON-NLS-1$
this.element = element;
this.foundType = foundType;
}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/IncompleteAnnotationException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/IncompleteAnnotationException.java?view=diff&rev=450005&r1=450004&r2=450005
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/IncompleteAnnotationException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/IncompleteAnnotationException.java
Tue Sep 26 04:52:41 2006
@@ -17,6 +17,8 @@
package java.lang.annotation;
+import org.apache.harmony.annotation.internal.nls.Messages;
+
/**
* <p>
* Indicates that an element of an annotation type was accessed that was added
@@ -45,9 +47,7 @@
*/
public IncompleteAnnotationException(
Class<? extends Annotation> annotationType, String elementName) {
- super("The element, " + elementName
- + ", is not complete for the annotation " + annotationType
- + ".");
+ super(Messages.getString("annotation.0", elementName, annotationType)); //$NON-NLS-1$
this.annotationType = annotationType;
this.elementName = elementName;
}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/org/apache/harmony/annotation/internal/nls/messages.properties
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/org/apache/harmony/annotation/internal/nls/messages.properties?view=diff&rev=450005&r1=450004&r2=450005
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/org/apache/harmony/annotation/internal/nls/messages.properties
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/org/apache/harmony/annotation/internal/nls/messages.properties
Tue Sep 26 04:52:41 2006
@@ -14,3 +14,5 @@
#
# messages for EN locale
+annotation.0=The element, {0}, is not complete for the annotation {1}.
+annotation.1=The annotation element, {0}, doesn't match the type {1}.
|