Skip to content

Commit cf77dac

Browse files
stefanhausteinGoogle Java Core Libraries
authored andcommitted
Enable additional methods in MoreExecutors for J2kt-native
RELNOTES=n/a PiperOrigin-RevId: 726090734
1 parent 96aec22 commit cf77dac

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package com.google.common.util.concurrent;
1616

1717
import com.google.common.annotations.GwtIncompatible;
18-
import com.google.common.annotations.J2ktIncompatible;
1918
import com.google.errorprone.annotations.CanIgnoreReturnValue;
2019
import com.google.errorprone.annotations.CheckReturnValue;
2120
import java.util.concurrent.AbstractExecutorService;
@@ -36,7 +35,6 @@
3635
*/
3736
@CheckReturnValue
3837
@GwtIncompatible
39-
@J2ktIncompatible
4038
public abstract class AbstractListeningExecutorService extends AbstractExecutorService
4139
implements ListeningExecutorService {
4240
/** Constructor for use by subclasses. */

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,6 @@ public static Executor newSequentialExecutor(Executor delegate) {
461461
*
462462
* @since 10.0
463463
*/
464-
@J2ktIncompatible
465464
@GwtIncompatible // TODO
466465
public static ListeningExecutorService listeningDecorator(ExecutorService delegate) {
467466
return (delegate instanceof ListeningExecutorService)
@@ -487,7 +486,6 @@ public static ListeningExecutorService listeningDecorator(ExecutorService delega
487486
*
488487
* @since 10.0
489488
*/
490-
@J2ktIncompatible
491489
@GwtIncompatible // TODO
492490
public static ListeningScheduledExecutorService listeningDecorator(
493491
ScheduledExecutorService delegate) {
@@ -496,7 +494,6 @@ public static ListeningScheduledExecutorService listeningDecorator(
496494
: new ScheduledListeningDecorator(delegate);
497495
}
498496

499-
@J2ktIncompatible
500497
@GwtIncompatible // TODO
501498
private static class ListeningDecorator extends AbstractListeningExecutorService {
502499
private final ExecutorService delegate;
@@ -541,7 +538,6 @@ public final String toString() {
541538
}
542539
}
543540

544-
@J2ktIncompatible
545541
@GwtIncompatible // TODO
546542
private static final class ScheduledListeningDecorator extends ListeningDecorator
547543
implements ListeningScheduledExecutorService {
@@ -620,7 +616,6 @@ public int compareTo(Delayed other) {
620616
}
621617
}
622618

623-
@J2ktIncompatible
624619
@GwtIncompatible // TODO
625620
private static final class NeverSuccessfulListenableFutureTask
626621
extends AbstractFuture.TrustedFuture<@Nullable Void> implements Runnable {

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package com.google.common.util.concurrent;
1616

1717
import com.google.common.annotations.GwtIncompatible;
18-
import com.google.common.annotations.J2ktIncompatible;
1918
import com.google.errorprone.annotations.CanIgnoreReturnValue;
2019
import com.google.errorprone.annotations.CheckReturnValue;
2120
import java.util.concurrent.AbstractExecutorService;
@@ -36,7 +35,6 @@
3635
*/
3736
@CheckReturnValue
3837
@GwtIncompatible
39-
@J2ktIncompatible
4038
public abstract class AbstractListeningExecutorService extends AbstractExecutorService
4139
implements ListeningExecutorService {
4240
/** Constructor for use by subclasses. */

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@ public static Executor newSequentialExecutor(Executor delegate) {
455455
*
456456
* @since 10.0
457457
*/
458-
@J2ktIncompatible
459458
@GwtIncompatible // TODO
460459
public static ListeningExecutorService listeningDecorator(ExecutorService delegate) {
461460
return (delegate instanceof ListeningExecutorService)
@@ -481,7 +480,6 @@ public static ListeningExecutorService listeningDecorator(ExecutorService delega
481480
*
482481
* @since 10.0
483482
*/
484-
@J2ktIncompatible
485483
@GwtIncompatible // TODO
486484
public static ListeningScheduledExecutorService listeningDecorator(
487485
ScheduledExecutorService delegate) {
@@ -490,7 +488,6 @@ public static ListeningScheduledExecutorService listeningDecorator(
490488
: new ScheduledListeningDecorator(delegate);
491489
}
492490

493-
@J2ktIncompatible
494491
@GwtIncompatible // TODO
495492
private static class ListeningDecorator extends AbstractListeningExecutorService {
496493
private final ExecutorService delegate;
@@ -535,7 +532,6 @@ public final String toString() {
535532
}
536533
}
537534

538-
@J2ktIncompatible
539535
@GwtIncompatible // TODO
540536
private static final class ScheduledListeningDecorator extends ListeningDecorator
541537
implements ListeningScheduledExecutorService {
@@ -614,7 +610,6 @@ public int compareTo(Delayed other) {
614610
}
615611
}
616612

617-
@J2ktIncompatible
618613
@GwtIncompatible // TODO
619614
private static final class NeverSuccessfulListenableFutureTask
620615
extends AbstractFuture.TrustedFuture<@Nullable Void> implements Runnable {

0 commit comments

Comments
 (0)