aboutsummaryrefslogtreecommitdiff
path: root/guava/src/com/google/common/reflect/Parameter.java
diff options
context:
space:
mode:
Diffstat (limited to 'guava/src/com/google/common/reflect/Parameter.java')
-rw-r--r--guava/src/com/google/common/reflect/Parameter.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/guava/src/com/google/common/reflect/Parameter.java b/guava/src/com/google/common/reflect/Parameter.java
index c80d18571..e0e244b05 100644
--- a/guava/src/com/google/common/reflect/Parameter.java
+++ b/guava/src/com/google/common/reflect/Parameter.java
@@ -40,7 +40,7 @@ public final class Parameter implements AnnotatedElement {
private final ImmutableList<Annotation> annotations;
/**
- * An {@link AnnotatedType} instance, or {@code null} under Android VMs (possible only when using
+ * An {@code AnnotatedType} instance, or {@code null} under Android VMs (possible only when using
* the Android flavor of Guava). The field is declared with a type of {@code Object} to avoid
* compatibility problems on Android VMs. The corresponding accessor method, however, can have the
* more specific return type as long as users are careful to guard calls to it with version checks
@@ -93,7 +93,9 @@ public final class Parameter implements AnnotatedElement {
return getDeclaredAnnotations();
}
- /** @since 18.0 */
+ /**
+ * @since 18.0
+ */
@Override
public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) {
return getDeclaredAnnotationsByType(annotationType);
@@ -105,7 +107,9 @@ public final class Parameter implements AnnotatedElement {
return annotations.toArray(new Annotation[0]);
}
- /** @since 18.0 */
+ /**
+ * @since 18.0
+ */
@Override
@CheckForNull
public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationType) {
@@ -113,7 +117,9 @@ public final class Parameter implements AnnotatedElement {
return FluentIterable.from(annotations).filter(annotationType).first().orNull();
}
- /** @since 18.0 */
+ /**
+ * @since 18.0
+ */
@Override
public <A extends Annotation> A[] getDeclaredAnnotationsByType(Class<A> annotationType) {
@Nullable
@@ -126,12 +132,9 @@ public final class Parameter implements AnnotatedElement {
/**
* Returns the {@link AnnotatedType} of the parameter.
*
- * <p>This method will fail if run under an Android VM.
- *
- * @since 25.1 for guava-jre (available since 32.0.0 in guava-android)
+ * @since 25.1 for guava-jre
*/
- @SuppressWarnings({"Java7ApiChecker", "AndroidJdkLibsChecker"})
- @IgnoreJRERequirement
+ @SuppressWarnings("Java7ApiChecker")
public AnnotatedType getAnnotatedType() {
return requireNonNull((AnnotatedType) annotatedType);
}