Skip to content

Commit

Permalink
Remove @Beta from various testing APIs.
Browse files Browse the repository at this point in the history
RELNOTES=`testing`: Remove `@Beta` from various `testing` APIs.
PiperOrigin-RevId: 531573028
  • Loading branch information
kluever authored and Google Java Core Libraries committed May 12, 2023
1 parent 3da34f9 commit b331769
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import static com.google.common.base.Predicates.not;
import static com.google.common.testing.AbstractPackageSanityTests.Chopper.suffix;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.annotations.J2ktIncompatible;
import com.google.common.annotations.VisibleForTesting;
Expand Down Expand Up @@ -102,7 +101,6 @@
* @author Ben Yu
* @since 14.0
*/
@Beta
// TODO: Switch to JUnit 4 and use @Parameterized and @BeforeClass
// Note: @Test annotations are deliberate, as some subclasses specify @RunWith(JUnit4).
@GwtIncompatible
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import static com.google.common.base.Throwables.throwIfUnchecked;
import static com.google.common.testing.NullPointerTester.isNullable;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.annotations.J2ktIncompatible;
import com.google.common.annotations.VisibleForTesting;
Expand Down Expand Up @@ -80,7 +79,6 @@
* @author Ben Yu
* @since 14.0
*/
@Beta
@GwtIncompatible
@J2ktIncompatible
public final class ClassSanityTester {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.common.testing;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import java.util.logging.Level;
import java.util.logging.Logger;
Expand All @@ -30,7 +29,6 @@
* @author Luiz-Otavio Zorzella
* @since 10.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public abstract class SloppyTearDown implements TearDown {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.common.testing;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;

/**
Expand All @@ -25,7 +24,6 @@
* @author Kevin Bourrillion
* @since 10.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public interface TearDown {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.common.testing;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.errorprone.annotations.DoNotMock;

Expand All @@ -26,7 +25,6 @@
* @author Kevin Bourrillion
* @since 10.0
*/
@Beta
@DoNotMock("Implement with a lambda")
@GwtCompatible
@ElementTypesAreNonnullByDefault
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

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

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.Lists;
import com.google.errorprone.annotations.concurrent.GuardedBy;
Expand All @@ -36,7 +35,6 @@
* @author Kevin Bourrillion
* @since 10.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public class TearDownStack implements TearDownAccepter {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import static com.google.common.base.Predicates.not;
import static com.google.common.testing.AbstractPackageSanityTests.Chopper.suffix;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.annotations.J2ktIncompatible;
import com.google.common.annotations.VisibleForTesting;
Expand Down Expand Up @@ -102,7 +101,6 @@
* @author Ben Yu
* @since 14.0
*/
@Beta
// TODO: Switch to JUnit 4 and use @Parameterized and @BeforeClass
// Note: @Test annotations are deliberate, as some subclasses specify @RunWith(JUnit4).
@GwtIncompatible
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import static com.google.common.base.Throwables.throwIfUnchecked;
import static com.google.common.testing.NullPointerTester.isNullable;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.annotations.J2ktIncompatible;
import com.google.common.annotations.VisibleForTesting;
Expand Down Expand Up @@ -80,7 +79,6 @@
* @author Ben Yu
* @since 14.0
*/
@Beta
@GwtIncompatible
@J2ktIncompatible
public final class ClassSanityTester {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.common.testing;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import java.util.logging.Level;
import java.util.logging.Logger;
Expand All @@ -30,7 +29,6 @@
* @author Luiz-Otavio Zorzella
* @since 10.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public abstract class SloppyTearDown implements TearDown {
Expand Down
2 changes: 0 additions & 2 deletions guava-testlib/src/com/google/common/testing/TearDown.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.common.testing;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;

/**
Expand All @@ -25,7 +24,6 @@
* @author Kevin Bourrillion
* @since 10.0
*/
@Beta
@FunctionalInterface
@GwtCompatible
@ElementTypesAreNonnullByDefault
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.common.testing;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.errorprone.annotations.DoNotMock;

Expand All @@ -26,7 +25,6 @@
* @author Kevin Bourrillion
* @since 10.0
*/
@Beta
@DoNotMock("Implement with a lambda")
@GwtCompatible
@ElementTypesAreNonnullByDefault
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

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

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.Lists;
import com.google.errorprone.annotations.concurrent.GuardedBy;
Expand All @@ -36,7 +35,6 @@
* @author Kevin Bourrillion
* @since 10.0
*/
@Beta
@GwtCompatible
@ElementTypesAreNonnullByDefault
public class TearDownStack implements TearDownAccepter {
Expand Down

0 comments on commit b331769

Please sign in to comment.