changeset 4780:a51777c9228a

7110521: Regression test failed: Introspector/TestTypeResolver.java Reviewed-by: rupashka
author malenkov
date Mon, 14 Nov 2011 14:38:36 +0400
parents c0f3f1558a94
children 28f768c41a90
files test/java/beans/Introspector/TestTypeResolver.java
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/beans/Introspector/TestTypeResolver.java	Mon Nov 14 14:00:05 2011 +0400
+++ b/test/java/beans/Introspector/TestTypeResolver.java	Mon Nov 14 14:38:36 2011 +0400
@@ -29,6 +29,7 @@
 
 import com.sun.beans.TypeResolver;
 
+import java.lang.annotation.Annotation;
 import java.lang.reflect.Field;
 import java.lang.reflect.GenericDeclaration;
 import java.lang.reflect.Method;
@@ -170,6 +171,22 @@
         public int hashCode() {
             return hash(name) ^ hash(gd) ^ Arrays.hashCode(bounds);
         }
+
+        public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) {
+            return false; // not used
+        }
+
+        public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
+            return null; // not used
+        }
+
+        public Annotation[] getAnnotations() {
+            return null; // not used
+        }
+
+        public Annotation[] getDeclaredAnnotations() {
+            return null; // not used
+        }
     }
 
     private static class ClassTypeVariable extends TypeVariableImpl<Class<?>> {