From 969d0adce0c7e8fca5bfeca9d7f8c185ee57500a Mon Sep 17 00:00:00 2001 From: malenkov Date: Mon, 14 Nov 2011 14:38:36 +0400 Subject: [PATCH] 7110521: Regression test failed: Introspector/TestTypeResolver.java Reviewed-by: rupashka --- .../beans/Introspector/TestTypeResolver.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/java/beans/Introspector/TestTypeResolver.java b/test/java/beans/Introspector/TestTypeResolver.java index 0e0378221..6704d8f7e 100644 --- a/test/java/beans/Introspector/TestTypeResolver.java +++ b/test/java/beans/Introspector/TestTypeResolver.java @@ -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 class TestTypeResolver { public int hashCode() { return hash(name) ^ hash(gd) ^ Arrays.hashCode(bounds); } + + public boolean isAnnotationPresent(Class annotationClass) { + return false; // not used + } + + public T getAnnotation(Class 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> { -- GitLab