From d5d96de9f8a185d8b8ee98f1ca67c7dd4e0034ad Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 28 Nov 2013 15:33:30 +0100 Subject: [PATCH] deprecate useless ReflectionCache methods --- platform/util/src/com/intellij/util/ReflectionCache.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/util/src/com/intellij/util/ReflectionCache.java b/platform/util/src/com/intellij/util/ReflectionCache.java index 1a948882e4b3..800733f6ff0b 100644 --- a/platform/util/src/com/intellij/util/ReflectionCache.java +++ b/platform/util/src/com/intellij/util/ReflectionCache.java @@ -32,16 +32,19 @@ import java.lang.reflect.TypeVariable; @SuppressWarnings({"MismatchedQueryAndUpdateOfCollection"}) public class ReflectionCache { + @Deprecated public static Class getSuperClass(@NotNull Class aClass) { return aClass.getSuperclass(); } @NotNull + @Deprecated public static Class[] getInterfaces(@NotNull Class aClass) { return aClass.getInterfaces(); } @NotNull + @Deprecated public static Method[] getMethods(@NotNull Class aClass) { return aClass.getMethods(); } @@ -50,25 +53,30 @@ public class ReflectionCache { return ancestor == descendant || ancestor.isAssignableFrom(descendant); } + @Deprecated public static boolean isInstance(Object instance, @NotNull Class clazz) { return clazz.isInstance(instance); } + @Deprecated public static boolean isInterface(@NotNull Class aClass) { return aClass.isInterface(); } @NotNull + @Deprecated public static TypeVariable>[] getTypeParameters(@NotNull Class aClass) { return aClass.getTypeParameters(); } @NotNull + @Deprecated public static Type[] getGenericInterfaces(@NotNull Class aClass) { return aClass.getGenericInterfaces(); } @NotNull + @Deprecated public static Type[] getActualTypeArguments(@NotNull ParameterizedType type) { return type.getActualTypeArguments(); }