Skip to content

Commit b561eb1

Browse files
klueverGoogle Java Core Libraries
authored and
Google Java Core Libraries
committedMay 16, 2023
Remove @Beta from Parameter (except getAnnotatedType()).
RELNOTES=`reflect`: Remove `@Beta` from `Parameter` (except `getAnnotatedType()`). PiperOrigin-RevId: 532580251
1 parent 9f476d8 commit b561eb1

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed
 

‎android/guava/src/com/google/common/reflect/Parameter.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,9 @@
3030
/**
3131
* Represents a method or constructor parameter.
3232
*
33-
* <p><b>Note:</b> Since Java 8 introduced {@link java.lang.reflect.Parameter} to represent method
34-
* and constructor parameters, this class is no longer necessary. We intend to deprecate it in a
35-
* future version.
36-
*
3733
* @author Ben Yu
3834
* @since 14.0
3935
*/
40-
@Beta
4136
@ElementTypesAreNonnullByDefault
4237
public final class Parameter implements AnnotatedElement {
4338

@@ -145,6 +140,7 @@ public <A extends Annotation> A[] getDeclaredAnnotationsByType(Class<A> annotati
145140
* @deprecated This method does not work under Android VMs. It is safe to use from guava-jre, but
146141
* this copy in guava-android is not safe to use.
147142
*/
143+
@Beta
148144
@SuppressWarnings({"Java7ApiChecker", "AndroidJdkLibsChecker"})
149145
@Deprecated
150146
@DoNotCall("fails under Android VMs; do not use from guava-android")

‎guava/src/com/google/common/reflect/Parameter.java

-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import static com.google.common.base.Preconditions.checkNotNull;
1818
import static java.util.Objects.requireNonNull;
1919

20-
import com.google.common.annotations.Beta;
2120
import com.google.common.collect.FluentIterable;
2221
import com.google.common.collect.ImmutableList;
2322
import java.lang.annotation.Annotation;
@@ -29,14 +28,9 @@
2928
/**
3029
* Represents a method or constructor parameter.
3130
*
32-
* <p><b>Note:</b> Since Java 8 introduced {@link java.lang.reflect.Parameter} to represent method
33-
* and constructor parameters, this class is no longer necessary. We intend to deprecate it in a
34-
* future version.
35-
*
3631
* @author Ben Yu
3732
* @since 14.0
3833
*/
39-
@Beta
4034
@ElementTypesAreNonnullByDefault
4135
public final class Parameter implements AnnotatedElement {
4236

0 commit comments

Comments
 (0)
Please sign in to comment.