2177498
From e1cc5f8e84ab071654d31a55f11db207188c7567 Mon Sep 17 00:00:00 2001
2177498
From: Mikolaj Izdebski <mizdebsk@redhat.com>
2177498
Date: Fri, 20 Jun 2014 09:29:44 +0200
2177498
Subject: [PATCH] Implement reflection methods required by Java 8
2177498
2177498
---
2177498
 guava/src/com/google/common/reflect/Types.java | 18 ++++++++++++++++++
2177498
 1 file changed, 18 insertions(+)
2177498
2177498
diff --git a/guava/src/com/google/common/reflect/Types.java b/guava/src/com/google/common/reflect/Types.java
2177498
index 0f05f78..d5bd950 100644
2177498
--- a/guava/src/com/google/common/reflect/Types.java
2177498
+++ b/guava/src/com/google/common/reflect/Types.java
2177498
@@ -29,6 +29,8 @@ import com.google.common.collect.ImmutableList;
2177498
 import com.google.common.collect.Iterables;
2177498
 
2177498
 import java.io.Serializable;
2177498
+import java.lang.annotation.Annotation;
2177498
+import java.lang.reflect.AnnotatedType;
11a4bde
 import java.lang.reflect.AnnotatedElement;
2177498
 import java.lang.reflect.Array;
2177498
 import java.lang.reflect.GenericArrayType;
11a4bde
@@ -371,6 +373,22 @@ final class Types {
2177498
         return false;
2177498
       }
2177498
     }
2177498
+
2177498
+    @Override public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
2177498
+      return null;
2177498
+    }
2177498
+
2177498
+    @Override public Annotation[] getAnnotations() {
2177498
+      return new Annotation[0];
2177498
+    }
2177498
+
2177498
+    @Override public Annotation[] getDeclaredAnnotations() {
2177498
+      return new Annotation[0];
2177498
+    }
2177498
+
2177498
+    @Override public AnnotatedType[] getAnnotatedBounds() {
2177498
+      return new AnnotatedType[0];
2177498
+    }
2177498
   }
2177498
 
2177498
   static final class WildcardTypeImpl implements WildcardType, Serializable {