1.1 --- a/emul/src/main/java/java/lang/Class.java Sun Dec 02 12:26:14 2012 +0100
1.2 +++ b/emul/src/main/java/java/lang/Class.java Sun Dec 02 14:01:17 2012 +0100
1.3 @@ -770,10 +770,6 @@
1.4 throw new ClassCastException(this.toString());
1.5 }
1.6
1.7 - /**
1.8 - * @throws NullPointerException {@inheritDoc}
1.9 - * @since 1.5
1.10 - */
1.11 @JavaScriptBody(args = { "self", "ac" },
1.12 body =
1.13 "if (self.anno) {"
1.14 @@ -783,6 +779,10 @@
1.15 private Object getAnnotationData(Class<?> annotationClass) {
1.16 throw new UnsupportedOperationException();
1.17 }
1.18 + /**
1.19 + * @throws NullPointerException {@inheritDoc}
1.20 + * @since 1.5
1.21 + */
1.22 public <A extends Annotation> A getAnnotation(Class<A> annotationClass) {
1.23 Object data = getAnnotationData(annotationClass);
1.24 return data == null ? null : AnnotationImpl.create(annotationClass, data);