Skip to content

Commit a3571b4

Browse files
klueverGoogle Java Core Libraries
authored and
Google Java Core Libraries
committedMay 17, 2023
Remove @Beta from various MoreExecutors APIs.
RELNOTES=`concurrent`: Remove `@Beta` from various `MoreExecutors` APIs. PiperOrigin-RevId: 532635013
1 parent b561eb1 commit a3571b4

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed
 

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

-8
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import static com.google.common.base.Preconditions.checkNotNull;
1919
import static java.util.Objects.requireNonNull;
2020

21-
import com.google.common.annotations.Beta;
2221
import com.google.common.annotations.GwtCompatible;
2322
import com.google.common.annotations.GwtIncompatible;
2423
import com.google.common.annotations.J2ktIncompatible;
@@ -80,7 +79,6 @@ private MoreExecutors() {}
8079
* @param timeUnit unit of time for the time parameter
8180
* @return an unmodifiable version of the input which will not hang the JVM
8281
*/
83-
@Beta
8482
@J2ktIncompatible
8583
@GwtIncompatible // TODO
8684
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
@@ -102,7 +100,6 @@ public static ExecutorService getExitingExecutorService(
102100
* @param executor the executor to modify to make sure it exits when the application is finished
103101
* @return an unmodifiable version of the input which will not hang the JVM
104102
*/
105-
@Beta
106103
@J2ktIncompatible
107104
@GwtIncompatible // concurrency
108105
public static ExecutorService getExitingExecutorService(ThreadPoolExecutor executor) {
@@ -122,7 +119,6 @@ public static ExecutorService getExitingExecutorService(ThreadPoolExecutor execu
122119
* @param timeUnit unit of time for the time parameter
123120
* @return an unmodifiable version of the input which will not hang the JVM
124121
*/
125-
@Beta
126122
@J2ktIncompatible
127123
@GwtIncompatible // TODO
128124
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
@@ -145,7 +141,6 @@ public static ScheduledExecutorService getExitingScheduledExecutorService(
145141
* @param executor the executor to modify to make sure it exits when the application is finished
146142
* @return an unmodifiable version of the input which will not hang the JVM
147143
*/
148-
@Beta
149144
@J2ktIncompatible
150145
@GwtIncompatible // TODO
151146
public static ScheduledExecutorService getExitingScheduledExecutorService(
@@ -164,7 +159,6 @@ public static ScheduledExecutorService getExitingScheduledExecutorService(
164159
* JVM
165160
* @param timeUnit unit of time for the time parameter
166161
*/
167-
@Beta
168162
@J2ktIncompatible
169163
@GwtIncompatible // TODO
170164
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
@@ -823,7 +817,6 @@ public void run() {
823817
*
824818
* @since 14.0
825819
*/
826-
@Beta
827820
@J2ktIncompatible
828821
@GwtIncompatible // concurrency
829822
public static ThreadFactory platformThreadFactory() {
@@ -1013,7 +1006,6 @@ protected Runnable wrapTask(Runnable command) {
10131006
* if the call timed out or was interrupted
10141007
* @since 17.0
10151008
*/
1016-
@Beta
10171009
@CanIgnoreReturnValue
10181010
@J2ktIncompatible
10191011
@GwtIncompatible // concurrency

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

-12
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import static com.google.common.util.concurrent.Internal.toNanosSaturated;
2020
import static java.util.Objects.requireNonNull;
2121

22-
import com.google.common.annotations.Beta;
2322
import com.google.common.annotations.GwtCompatible;
2423
import com.google.common.annotations.GwtIncompatible;
2524
import com.google.common.annotations.J2ktIncompatible;
@@ -82,7 +81,6 @@ private MoreExecutors() {}
8281
* @return an unmodifiable version of the input which will not hang the JVM
8382
* @since 28.0
8483
*/
85-
@Beta
8684
@J2ktIncompatible
8785
@GwtIncompatible // TODO
8886
public static ExecutorService getExitingExecutorService(
@@ -104,7 +102,6 @@ public static ExecutorService getExitingExecutorService(
104102
* @param timeUnit unit of time for the time parameter
105103
* @return an unmodifiable version of the input which will not hang the JVM
106104
*/
107-
@Beta
108105
@J2ktIncompatible
109106
@GwtIncompatible // TODO
110107
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
@@ -126,7 +123,6 @@ public static ExecutorService getExitingExecutorService(
126123
* @param executor the executor to modify to make sure it exits when the application is finished
127124
* @return an unmodifiable version of the input which will not hang the JVM
128125
*/
129-
@Beta
130126
@J2ktIncompatible
131127
@GwtIncompatible // concurrency
132128
public static ExecutorService getExitingExecutorService(ThreadPoolExecutor executor) {
@@ -146,7 +142,6 @@ public static ExecutorService getExitingExecutorService(ThreadPoolExecutor execu
146142
* @return an unmodifiable version of the input which will not hang the JVM
147143
* @since 28.0
148144
*/
149-
@Beta
150145
@J2ktIncompatible
151146
@GwtIncompatible // java.time.Duration
152147
public static ScheduledExecutorService getExitingScheduledExecutorService(
@@ -168,7 +163,6 @@ public static ScheduledExecutorService getExitingScheduledExecutorService(
168163
* @param timeUnit unit of time for the time parameter
169164
* @return an unmodifiable version of the input which will not hang the JVM
170165
*/
171-
@Beta
172166
@J2ktIncompatible
173167
@GwtIncompatible // TODO
174168
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
@@ -191,7 +185,6 @@ public static ScheduledExecutorService getExitingScheduledExecutorService(
191185
* @param executor the executor to modify to make sure it exits when the application is finished
192186
* @return an unmodifiable version of the input which will not hang the JVM
193187
*/
194-
@Beta
195188
@J2ktIncompatible
196189
@GwtIncompatible // TODO
197190
public static ScheduledExecutorService getExitingScheduledExecutorService(
@@ -210,7 +203,6 @@ public static ScheduledExecutorService getExitingScheduledExecutorService(
210203
* JVM
211204
* @since 28.0
212205
*/
213-
@Beta
214206
@J2ktIncompatible
215207
@GwtIncompatible // java.time.Duration
216208
public static void addDelayedShutdownHook(ExecutorService service, Duration terminationTimeout) {
@@ -228,7 +220,6 @@ public static void addDelayedShutdownHook(ExecutorService service, Duration term
228220
* JVM
229221
* @param timeUnit unit of time for the time parameter
230222
*/
231-
@Beta
232223
@J2ktIncompatible
233224
@GwtIncompatible // TODO
234225
@SuppressWarnings("GoodTime") // should accept a java.time.Duration
@@ -904,7 +895,6 @@ public void run() {
904895
*
905896
* @since 14.0
906897
*/
907-
@Beta
908898
@J2ktIncompatible
909899
@GwtIncompatible // concurrency
910900
public static ThreadFactory platformThreadFactory() {
@@ -1093,7 +1083,6 @@ protected Runnable wrapTask(Runnable command) {
10931083
* if the call timed out or was interrupted
10941084
* @since 28.0
10951085
*/
1096-
@Beta
10971086
@CanIgnoreReturnValue
10981087
@J2ktIncompatible
10991088
@GwtIncompatible // java.time.Duration
@@ -1125,7 +1114,6 @@ public static boolean shutdownAndAwaitTermination(ExecutorService service, Durat
11251114
* if the call timed out or was interrupted
11261115
* @since 17.0
11271116
*/
1128-
@Beta
11291117
@CanIgnoreReturnValue
11301118
@J2ktIncompatible
11311119
@GwtIncompatible // concurrency

0 commit comments

Comments
 (0)
Please sign in to comment.