Skip to content

Commit

Permalink
Remove @Beta from Parameter (except getAnnotatedType()).
Browse files Browse the repository at this point in the history
RELNOTES=`reflect`: Remove `@Beta` from `Parameter` (except `getAnnotatedType()`).
PiperOrigin-RevId: 532580251
  • Loading branch information
kluever authored and Google Java Core Libraries committed May 16, 2023
1 parent 9f476d8 commit b561eb1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
6 changes: 1 addition & 5 deletions android/guava/src/com/google/common/reflect/Parameter.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,9 @@
/**
* Represents a method or constructor parameter.
*
* <p><b>Note:</b> Since Java 8 introduced {@link java.lang.reflect.Parameter} to represent method
* and constructor parameters, this class is no longer necessary. We intend to deprecate it in a
* future version.
*
* @author Ben Yu
* @since 14.0
*/
@Beta
@ElementTypesAreNonnullByDefault
public final class Parameter implements AnnotatedElement {

Expand Down Expand Up @@ -145,6 +140,7 @@ public <A extends Annotation> A[] getDeclaredAnnotationsByType(Class<A> annotati
* @deprecated This method does not work under Android VMs. It is safe to use from guava-jre, but
* this copy in guava-android is not safe to use.
*/
@Beta
@SuppressWarnings({"Java7ApiChecker", "AndroidJdkLibsChecker"})
@Deprecated
@DoNotCall("fails under Android VMs; do not use from guava-android")
Expand Down
6 changes: 0 additions & 6 deletions guava/src/com/google/common/reflect/Parameter.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import static com.google.common.base.Preconditions.checkNotNull;
import static java.util.Objects.requireNonNull;

import com.google.common.annotations.Beta;
import com.google.common.collect.FluentIterable;
import com.google.common.collect.ImmutableList;
import java.lang.annotation.Annotation;
Expand All @@ -29,14 +28,9 @@
/**
* Represents a method or constructor parameter.
*
* <p><b>Note:</b> Since Java 8 introduced {@link java.lang.reflect.Parameter} to represent method
* and constructor parameters, this class is no longer necessary. We intend to deprecate it in a
* future version.
*
* @author Ben Yu
* @since 14.0
*/
@Beta
@ElementTypesAreNonnullByDefault
public final class Parameter implements AnnotatedElement {

Expand Down

0 comments on commit b561eb1

Please sign in to comment.