Skip to content

Commit

Permalink
Remove @Beta from Invokable and some methods in TypeToken.
Browse files Browse the repository at this point in the history
Fixes #3051

RELNOTES=`reflect`: Remove `@Beta` from `Invokable` and some methods in `TypeToken`.
PiperOrigin-RevId: 523204476
  • Loading branch information
kluever authored and Google Java Core Libraries committed Apr 10, 2023
1 parent ba8ad69 commit a195f7d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions android/guava/src/com/google/common/reflect/Invokable.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import static com.google.common.base.Preconditions.checkNotNull;

import com.google.common.annotations.Beta;
import com.google.common.collect.ImmutableList;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import com.google.errorprone.annotations.DoNotCall;
Expand Down Expand Up @@ -64,7 +63,6 @@
* @since 14.0 (no longer implements {@link AccessibleObject} or {@code GenericDeclaration} since
* 31.0)
*/
@Beta
@ElementTypesAreNonnullByDefault
public abstract class Invokable<T, R> implements AnnotatedElement, Member {
private final AccessibleObject accessibleObject;
Expand Down
3 changes: 0 additions & 3 deletions android/guava/src/com/google/common/reflect/TypeToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import static com.google.common.base.Preconditions.checkState;
import static java.util.Objects.requireNonNull;

import com.google.common.annotations.Beta;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Joiner;
import com.google.common.base.Predicate;
Expand Down Expand Up @@ -590,7 +589,6 @@ public final TypeToken<?> getComponentType() {
*
* @since 14.0
*/
@Beta
public final Invokable<T, Object> method(Method method) {
checkArgument(
this.someRawTypeIsSubclassOf(method.getDeclaringClass()),
Expand Down Expand Up @@ -630,7 +628,6 @@ public String toString() {
*
* @since 14.0
*/
@Beta
public final Invokable<T, T> constructor(Constructor<?> constructor) {
checkArgument(
constructor.getDeclaringClass() == getRawType(),
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/reflect/Invokable.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import static com.google.common.base.Preconditions.checkNotNull;

import com.google.common.annotations.Beta;
import com.google.common.collect.ImmutableList;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import java.lang.annotation.Annotation;
Expand Down Expand Up @@ -63,7 +62,6 @@
* @since 14.0 (no longer implements {@link AccessibleObject} or {@code GenericDeclaration} since
* 31.0)
*/
@Beta
@ElementTypesAreNonnullByDefault
public abstract class Invokable<T, R> implements AnnotatedElement, Member {
private final AccessibleObject accessibleObject;
Expand Down
3 changes: 0 additions & 3 deletions guava/src/com/google/common/reflect/TypeToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import static com.google.common.base.Preconditions.checkState;
import static java.util.Objects.requireNonNull;

import com.google.common.annotations.Beta;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Joiner;
import com.google.common.base.Predicate;
Expand Down Expand Up @@ -590,7 +589,6 @@ public final TypeToken<?> getComponentType() {
*
* @since 14.0
*/
@Beta
public final Invokable<T, Object> method(Method method) {
checkArgument(
this.someRawTypeIsSubclassOf(method.getDeclaringClass()),
Expand Down Expand Up @@ -630,7 +628,6 @@ public String toString() {
*
* @since 14.0
*/
@Beta
public final Invokable<T, T> constructor(Constructor<?> constructor) {
checkArgument(
constructor.getDeclaringClass() == getRawType(),
Expand Down

0 comments on commit a195f7d

Please sign in to comment.