Skip to content

Commit

Permalink
Remove @Beta from various MoreExecutors APIs.
Browse files Browse the repository at this point in the history
RELNOTES=`concurrent`: Remove `@Beta` from various `MoreExecutors` APIs.
PiperOrigin-RevId: 532635013
  • Loading branch information
kluever authored and Google Java Core Libraries committed May 17, 2023
1 parent b561eb1 commit a3571b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
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 static java.util.Objects.requireNonNull;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.annotations.J2ktIncompatible;
Expand Down Expand Up @@ -80,7 +79,6 @@ private MoreExecutors() {}
* @param timeUnit unit of time for the time parameter
* @return an unmodifiable version of the input which will not hang the JVM
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // TODO
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
Expand All @@ -102,7 +100,6 @@ public static ExecutorService getExitingExecutorService(
* @param executor the executor to modify to make sure it exits when the application is finished
* @return an unmodifiable version of the input which will not hang the JVM
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // concurrency
public static ExecutorService getExitingExecutorService(ThreadPoolExecutor executor) {
Expand All @@ -122,7 +119,6 @@ public static ExecutorService getExitingExecutorService(ThreadPoolExecutor execu
* @param timeUnit unit of time for the time parameter
* @return an unmodifiable version of the input which will not hang the JVM
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // TODO
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
Expand All @@ -145,7 +141,6 @@ public static ScheduledExecutorService getExitingScheduledExecutorService(
* @param executor the executor to modify to make sure it exits when the application is finished
* @return an unmodifiable version of the input which will not hang the JVM
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // TODO
public static ScheduledExecutorService getExitingScheduledExecutorService(
Expand All @@ -164,7 +159,6 @@ public static ScheduledExecutorService getExitingScheduledExecutorService(
* JVM
* @param timeUnit unit of time for the time parameter
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // TODO
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
Expand Down Expand Up @@ -823,7 +817,6 @@ public void run() {
*
* @since 14.0
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // concurrency
public static ThreadFactory platformThreadFactory() {
Expand Down Expand Up @@ -1013,7 +1006,6 @@ protected Runnable wrapTask(Runnable command) {
* if the call timed out or was interrupted
* @since 17.0
*/
@Beta
@CanIgnoreReturnValue
@J2ktIncompatible
@GwtIncompatible // concurrency
Expand Down
12 changes: 0 additions & 12 deletions guava/src/com/google/common/util/concurrent/MoreExecutors.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import static com.google.common.util.concurrent.Internal.toNanosSaturated;
import static java.util.Objects.requireNonNull;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.annotations.J2ktIncompatible;
Expand Down Expand Up @@ -82,7 +81,6 @@ private MoreExecutors() {}
* @return an unmodifiable version of the input which will not hang the JVM
* @since 28.0
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // TODO
public static ExecutorService getExitingExecutorService(
Expand All @@ -104,7 +102,6 @@ public static ExecutorService getExitingExecutorService(
* @param timeUnit unit of time for the time parameter
* @return an unmodifiable version of the input which will not hang the JVM
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // TODO
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
Expand All @@ -126,7 +123,6 @@ public static ExecutorService getExitingExecutorService(
* @param executor the executor to modify to make sure it exits when the application is finished
* @return an unmodifiable version of the input which will not hang the JVM
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // concurrency
public static ExecutorService getExitingExecutorService(ThreadPoolExecutor executor) {
Expand All @@ -146,7 +142,6 @@ public static ExecutorService getExitingExecutorService(ThreadPoolExecutor execu
* @return an unmodifiable version of the input which will not hang the JVM
* @since 28.0
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // java.time.Duration
public static ScheduledExecutorService getExitingScheduledExecutorService(
Expand All @@ -168,7 +163,6 @@ public static ScheduledExecutorService getExitingScheduledExecutorService(
* @param timeUnit unit of time for the time parameter
* @return an unmodifiable version of the input which will not hang the JVM
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // TODO
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
Expand All @@ -191,7 +185,6 @@ public static ScheduledExecutorService getExitingScheduledExecutorService(
* @param executor the executor to modify to make sure it exits when the application is finished
* @return an unmodifiable version of the input which will not hang the JVM
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // TODO
public static ScheduledExecutorService getExitingScheduledExecutorService(
Expand All @@ -210,7 +203,6 @@ public static ScheduledExecutorService getExitingScheduledExecutorService(
* JVM
* @since 28.0
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // java.time.Duration
public static void addDelayedShutdownHook(ExecutorService service, Duration terminationTimeout) {
Expand All @@ -228,7 +220,6 @@ public static void addDelayedShutdownHook(ExecutorService service, Duration term
* JVM
* @param timeUnit unit of time for the time parameter
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // TODO
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
Expand Down Expand Up @@ -904,7 +895,6 @@ public void run() {
*
* @since 14.0
*/
@Beta
@J2ktIncompatible
@GwtIncompatible // concurrency
public static ThreadFactory platformThreadFactory() {
Expand Down Expand Up @@ -1093,7 +1083,6 @@ protected Runnable wrapTask(Runnable command) {
* if the call timed out or was interrupted
* @since 28.0
*/
@Beta
@CanIgnoreReturnValue
@J2ktIncompatible
@GwtIncompatible // java.time.Duration
Expand Down Expand Up @@ -1125,7 +1114,6 @@ public static boolean shutdownAndAwaitTermination(ExecutorService service, Durat
* if the call timed out or was interrupted
* @since 17.0
*/
@Beta
@CanIgnoreReturnValue
@J2ktIncompatible
@GwtIncompatible // concurrency
Expand Down

0 comments on commit a3571b4

Please sign in to comment.