Skip to content

Commit b9a2d58

Browse files
klueverGoogle Java Core Libraries
authored and
Google Java Core Libraries
committedApr 11, 2023
Remove @Beta from FluentFuture.
Fixes #3419 RELNOTES=`concurrent`: Remove `@Beta` from `FluentFuture`. PiperOrigin-RevId: 523466140
1 parent 15a0c9f commit b9a2d58

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed
 

‎android/guava/src/com/google/common/util/concurrent/FluentFuture.java

-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

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

19-
import com.google.common.annotations.Beta;
2019
import com.google.common.annotations.GwtCompatible;
2120
import com.google.common.annotations.GwtIncompatible;
2221
import com.google.common.annotations.J2ktIncompatible;
@@ -185,7 +184,6 @@ public final boolean cancel(boolean mayInterruptIfRunning) {
185184
*/
186185
@J2ktIncompatible
187186
@Partially.GwtIncompatible("AVAILABLE but requires exceptionType to be Throwable.class")
188-
@Beta
189187
public final <X extends Throwable> FluentFuture<V> catching(
190188
Class<X> exceptionType, Function<? super X, ? extends V> fallback, Executor executor) {
191189
return (FluentFuture<V>) Futures.catching(this, exceptionType, fallback, executor);
@@ -251,7 +249,6 @@ public final <X extends Throwable> FluentFuture<V> catching(
251249
*/
252250
@J2ktIncompatible
253251
@Partially.GwtIncompatible("AVAILABLE but requires exceptionType to be Throwable.class")
254-
@Beta
255252
public final <X extends Throwable> FluentFuture<V> catchingAsync(
256253
Class<X> exceptionType, AsyncFunction<? super X, ? extends V> fallback, Executor executor) {
257254
return (FluentFuture<V>) Futures.catchingAsync(this, exceptionType, fallback, executor);
@@ -270,7 +267,6 @@ public final <X extends Throwable> FluentFuture<V> catchingAsync(
270267
@J2ktIncompatible
271268
@GwtIncompatible // ScheduledExecutorService
272269
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
273-
@Beta
274270
public final FluentFuture<V> withTimeout(
275271
long timeout, TimeUnit unit, ScheduledExecutorService scheduledExecutor) {
276272
return (FluentFuture<V>) Futures.withTimeout(this, timeout, unit, scheduledExecutor);
@@ -315,7 +311,6 @@ public final FluentFuture<V> withTimeout(
315311
* @return A future that holds result of the function (if the input succeeded) or the original
316312
* input's failure (if not)
317313
*/
318-
@Beta
319314
public final <T extends @Nullable Object> FluentFuture<T> transformAsync(
320315
AsyncFunction<? super V, T> function, Executor executor) {
321316
return (FluentFuture<T>) Futures.transformAsync(this, function, executor);
@@ -353,7 +348,6 @@ public final FluentFuture<V> withTimeout(
353348
* @param executor Executor to run the function in.
354349
* @return A future that holds result of the transformation.
355350
*/
356-
@Beta
357351
public final <T extends @Nullable Object> FluentFuture<T> transform(
358352
Function<? super V, T> function, Executor executor) {
359353
return (FluentFuture<T>) Futures.transform(this, function, executor);

‎guava/src/com/google/common/util/concurrent/FluentFuture.java

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

20-
import com.google.common.annotations.Beta;
2120
import com.google.common.annotations.GwtCompatible;
2221
import com.google.common.annotations.GwtIncompatible;
2322
import com.google.common.annotations.J2ktIncompatible;
@@ -187,7 +186,6 @@ public final boolean cancel(boolean mayInterruptIfRunning) {
187186
*/
188187
@J2ktIncompatible
189188
@Partially.GwtIncompatible("AVAILABLE but requires exceptionType to be Throwable.class")
190-
@Beta
191189
public final <X extends Throwable> FluentFuture<V> catching(
192190
Class<X> exceptionType, Function<? super X, ? extends V> fallback, Executor executor) {
193191
return (FluentFuture<V>) Futures.catching(this, exceptionType, fallback, executor);
@@ -253,7 +251,6 @@ public final <X extends Throwable> FluentFuture<V> catching(
253251
*/
254252
@J2ktIncompatible
255253
@Partially.GwtIncompatible("AVAILABLE but requires exceptionType to be Throwable.class")
256-
@Beta
257254
public final <X extends Throwable> FluentFuture<V> catchingAsync(
258255
Class<X> exceptionType, AsyncFunction<? super X, ? extends V> fallback, Executor executor) {
259256
return (FluentFuture<V>) Futures.catchingAsync(this, exceptionType, fallback, executor);
@@ -271,7 +268,6 @@ public final <X extends Throwable> FluentFuture<V> catchingAsync(
271268
*/
272269
@J2ktIncompatible
273270
@GwtIncompatible // ScheduledExecutorService
274-
@Beta
275271
public final FluentFuture<V> withTimeout(
276272
Duration timeout, ScheduledExecutorService scheduledExecutor) {
277273
return withTimeout(toNanosSaturated(timeout), TimeUnit.NANOSECONDS, scheduledExecutor);
@@ -290,7 +286,6 @@ public final FluentFuture<V> withTimeout(
290286
@J2ktIncompatible
291287
@GwtIncompatible // ScheduledExecutorService
292288
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
293-
@Beta
294289
public final FluentFuture<V> withTimeout(
295290
long timeout, TimeUnit unit, ScheduledExecutorService scheduledExecutor) {
296291
return (FluentFuture<V>) Futures.withTimeout(this, timeout, unit, scheduledExecutor);
@@ -335,7 +330,6 @@ public final FluentFuture<V> withTimeout(
335330
* @return A future that holds result of the function (if the input succeeded) or the original
336331
* input's failure (if not)
337332
*/
338-
@Beta
339333
public final <T extends @Nullable Object> FluentFuture<T> transformAsync(
340334
AsyncFunction<? super V, T> function, Executor executor) {
341335
return (FluentFuture<T>) Futures.transformAsync(this, function, executor);
@@ -373,7 +367,6 @@ public final FluentFuture<V> withTimeout(
373367
* @param executor Executor to run the function in.
374368
* @return A future that holds result of the transformation.
375369
*/
376-
@Beta
377370
public final <T extends @Nullable Object> FluentFuture<T> transform(
378371
Function<? super V, T> function, Executor executor) {
379372
return (FluentFuture<T>) Futures.transform(this, function, executor);

0 commit comments

Comments
 (0)
Please sign in to comment.