Skip to content

Commit 752d805

Browse files
committed
AnnotatedElement Java8
1 parent 332e205 commit 752d805

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

sources/net.sf.j2s.java.core/src/java/lang/annotation/AnnotationTypeMismatchException.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import java.lang.reflect.Method;
2121

22-
import org.apache.harmony.luni.util.Msg;
22+
//import org.apache.harmony.luni.util.Msg;
2323

2424
/**
2525
* <p>
@@ -46,7 +46,8 @@ public class AnnotationTypeMismatchException extends RuntimeException {
4646
* @param foundType The invalid type that was found.
4747
*/
4848
public AnnotationTypeMismatchException(Method element, String foundType) {
49-
super(Msg.getString("annotation.1", element, foundType)); //$NON-NLS-1$
49+
super("Incorrectly typed data found for annotation element " + element
50+
+ " (Found data of type " + foundType + ")");
5051
this.element = element;
5152
this.foundType = foundType;
5253
}

sources/net.sf.j2s.java.core/src/java/lang/reflect/AnnotatedElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ default boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
427427
* @throws NullPointerException if the given annotation class is null
428428
* @since 1.8
429429
*/
430-
// SwingJS implemented directly in Class; already overridded in Field, Constructor, and Method
430+
// SwingJS implemented directly in Class; already overridden in Field, Constructor, and Method
431431
//default
432432
<T extends Annotation> T[] getDeclaredAnnotationsByType(Class<T> annotationClass);
433433
// {

0 commit comments

Comments
 (0)