Skip to content

Commit 8b4ad17

Browse files
cpovirkGoogle Java Core Libraries
authored andcommitted
Remove @Beta from AsyncCallable, ListenableScheduledFuture, and ClosingFuture.
The former two are simple interfaces. `ClosingFuture` was meant to be `@Beta` for only one release :) `ListenableScheduledFuture` was particularly silly to have as `@Beta` because it's the return type of `ListeningScheduledExecutorService`, from which we'd already removed `@Beta`. `AsyncCallable` makes extra sense to remove from `@Beta` at the same time as `Futures.submit`, `submitAsync`, and `scheduleAsync` (CL 416093023). RELNOTES=`util.concurrent`: Removed `@Beta` from `AsyncCallable`, `ListenableScheduledFuture`, and `ClosingFuture`. PiperOrigin-RevId: 416302588
1 parent e015172 commit 8b4ad17

File tree

6 files changed

+0
-12
lines changed

6 files changed

+0
-12
lines changed

android/guava/src/com/google/common/util/concurrent/AsyncCallable.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
package com.google.common.util.concurrent;
1616

17-
import com.google.common.annotations.Beta;
1817
import com.google.common.annotations.GwtCompatible;
1918
import java.util.concurrent.Future;
2019
import org.checkerframework.checker.nullness.qual.Nullable;
@@ -28,7 +27,6 @@
2827
*
2928
* @since 20.0
3029
*/
31-
@Beta
3230
@GwtCompatible
3331
@ElementTypesAreNonnullByDefault
3432
public interface AsyncCallable<V extends @Nullable Object> {

android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import static java.util.logging.Level.SEVERE;
3737
import static java.util.logging.Level.WARNING;
3838

39-
import com.google.common.annotations.Beta;
4039
import com.google.common.annotations.VisibleForTesting;
4140
import com.google.common.base.Function;
4241
import com.google.common.collect.FluentIterable;
@@ -191,7 +190,6 @@
191190
* @since 30.0
192191
*/
193192
// TODO(dpb): Consider reusing one CloseableList for the entire pipeline, modulo combinations.
194-
@Beta // @Beta for one release.
195193
@DoNotMock("Use ClosingFuture.from(Futures.immediate*Future)")
196194
@ElementTypesAreNonnullByDefault
197195
// TODO(dpb): GWT compatibility.

android/guava/src/com/google/common/util/concurrent/ListenableScheduledFuture.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
package com.google.common.util.concurrent;
1616

17-
import com.google.common.annotations.Beta;
1817
import com.google.common.annotations.GwtCompatible;
1918
import java.util.concurrent.ScheduledFuture;
2019
import org.checkerframework.checker.nullness.qual.Nullable;
@@ -25,7 +24,6 @@
2524
* @author Anthony Zana
2625
* @since 15.0
2726
*/
28-
@Beta
2927
@GwtCompatible
3028
@ElementTypesAreNonnullByDefault
3129
public interface ListenableScheduledFuture<V extends @Nullable Object>

guava/src/com/google/common/util/concurrent/AsyncCallable.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
package com.google.common.util.concurrent;
1616

17-
import com.google.common.annotations.Beta;
1817
import com.google.common.annotations.GwtCompatible;
1918
import java.util.concurrent.Future;
2019
import org.checkerframework.checker.nullness.qual.Nullable;
@@ -28,7 +27,6 @@
2827
*
2928
* @since 20.0
3029
*/
31-
@Beta
3230
@FunctionalInterface
3331
@GwtCompatible
3432
@ElementTypesAreNonnullByDefault

guava/src/com/google/common/util/concurrent/ClosingFuture.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import static java.util.logging.Level.SEVERE;
3737
import static java.util.logging.Level.WARNING;
3838

39-
import com.google.common.annotations.Beta;
4039
import com.google.common.annotations.VisibleForTesting;
4140
import com.google.common.base.Function;
4241
import com.google.common.collect.FluentIterable;
@@ -190,7 +189,6 @@
190189
* @since 30.0
191190
*/
192191
// TODO(dpb): Consider reusing one CloseableList for the entire pipeline, modulo combinations.
193-
@Beta // @Beta for one release.
194192
@DoNotMock("Use ClosingFuture.from(Futures.immediate*Future)")
195193
@ElementTypesAreNonnullByDefault
196194
// TODO(dpb): GWT compatibility.

guava/src/com/google/common/util/concurrent/ListenableScheduledFuture.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
package com.google.common.util.concurrent;
1616

17-
import com.google.common.annotations.Beta;
1817
import com.google.common.annotations.GwtCompatible;
1918
import java.util.concurrent.ScheduledFuture;
2019
import org.checkerframework.checker.nullness.qual.Nullable;
@@ -25,7 +24,6 @@
2524
* @author Anthony Zana
2625
* @since 15.0
2726
*/
28-
@Beta
2927
@GwtCompatible
3028
@ElementTypesAreNonnullByDefault
3129
public interface ListenableScheduledFuture<V extends @Nullable Object>

0 commit comments

Comments
 (0)