File tree Expand file tree Collapse file tree 10 files changed +20
-2
lines changed
android/guava/src/com/google/common/util/concurrent
guava/src/com/google/common/util/concurrent Expand file tree Collapse file tree 10 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 37
37
import static java .util .logging .Level .SEVERE ;
38
38
import static java .util .logging .Level .WARNING ;
39
39
40
+ import com .google .common .annotations .GwtIncompatible ;
40
41
import com .google .common .annotations .J2ktIncompatible ;
41
42
import com .google .common .annotations .VisibleForTesting ;
42
43
import com .google .common .collect .FluentIterable ;
190
191
// TODO(dpb): Consider reusing one CloseableList for the entire pipeline, modulo combinations.
191
192
@ DoNotMock ("Use ClosingFuture.from(Futures.immediate*Future)" )
192
193
@ J2ktIncompatible
193
- // TODO(dpb): GWT compatibility.
194
+ @ GwtIncompatible // TODO(dpb): GWT compatibility.
194
195
public final class ClosingFuture <V extends @ Nullable Object > {
195
196
196
197
private static final LazyLogger logger = new LazyLogger (ClosingFuture .class );
Original file line number Diff line number Diff line change 25
25
import static com .google .common .util .concurrent .MoreExecutors .directExecutor ;
26
26
import static java .util .Objects .requireNonNull ;
27
27
28
+ import com .google .common .annotations .GwtIncompatible ;
28
29
import com .google .common .annotations .J2ktIncompatible ;
29
30
import com .google .errorprone .annotations .concurrent .LazyInit ;
30
31
import java .util .concurrent .Callable ;
86
87
* @since 26.0
87
88
*/
88
89
@ J2ktIncompatible
90
+ @ GwtIncompatible
89
91
public final class ExecutionSequencer {
90
92
91
93
private ExecutionSequencer () {}
Original file line number Diff line number Diff line change 14
14
15
15
package com .google .common .util .concurrent ;
16
16
17
+ import com .google .common .annotations .GwtIncompatible ;
17
18
import com .google .common .annotations .J2ktIncompatible ;
18
19
import java .util .Date ;
19
20
import java .util .concurrent .TimeUnit ;
20
21
import java .util .concurrent .locks .Condition ;
21
22
22
23
/** Forwarding wrapper around a {@code Condition}. */
23
24
@ J2ktIncompatible
25
+ @ GwtIncompatible
24
26
abstract class ForwardingCondition implements Condition {
25
27
abstract Condition delegate ();
26
28
Original file line number Diff line number Diff line change 14
14
15
15
package com .google .common .util .concurrent ;
16
16
17
+ import com .google .common .annotations .GwtIncompatible ;
17
18
import com .google .common .annotations .J2ktIncompatible ;
18
19
import java .util .concurrent .TimeUnit ;
19
20
import java .util .concurrent .locks .Condition ;
20
21
import java .util .concurrent .locks .Lock ;
21
22
22
23
/** Forwarding wrapper around a {@code Lock}. */
23
24
@ J2ktIncompatible
25
+ @ GwtIncompatible
24
26
abstract class ForwardingLock implements Lock {
25
27
abstract Lock delegate ();
26
28
Original file line number Diff line number Diff line change 16
16
17
17
import static java .lang .Math .min ;
18
18
19
+ import com .google .common .annotations .GwtIncompatible ;
19
20
import com .google .common .annotations .J2ktIncompatible ;
20
21
import java .util .concurrent .locks .LockSupport ;
21
22
import org .jspecify .annotations .Nullable ;
25
26
* signal on 32 bit devices running Android Q.
26
27
*/
27
28
@ J2ktIncompatible
29
+ @ GwtIncompatible
28
30
final class OverflowAvoidingLockSupport {
29
31
// Represents the max nanoseconds representable on a linux timespec with a 32 bit tv_sec
30
32
static final long MAX_NANOSECONDS_THRESHOLD = (1L + Integer .MAX_VALUE ) * 1_000_000_000L - 1L ;
Original file line number Diff line number Diff line change 37
37
import static java .util .logging .Level .SEVERE ;
38
38
import static java .util .logging .Level .WARNING ;
39
39
40
+ import com .google .common .annotations .GwtIncompatible ;
40
41
import com .google .common .annotations .J2ktIncompatible ;
41
42
import com .google .common .annotations .VisibleForTesting ;
42
43
import com .google .common .collect .FluentIterable ;
190
191
// TODO(dpb): Consider reusing one CloseableList for the entire pipeline, modulo combinations.
191
192
@ DoNotMock ("Use ClosingFuture.from(Futures.immediate*Future)" )
192
193
@ J2ktIncompatible
193
- // TODO(dpb): GWT compatibility.
194
+ @ GwtIncompatible // TODO(dpb): GWT compatibility.
194
195
public final class ClosingFuture <V extends @ Nullable Object > {
195
196
196
197
private static final LazyLogger logger = new LazyLogger (ClosingFuture .class );
Original file line number Diff line number Diff line change 25
25
import static com .google .common .util .concurrent .MoreExecutors .directExecutor ;
26
26
import static java .util .Objects .requireNonNull ;
27
27
28
+ import com .google .common .annotations .GwtIncompatible ;
28
29
import com .google .common .annotations .J2ktIncompatible ;
29
30
import com .google .errorprone .annotations .concurrent .LazyInit ;
30
31
import java .util .concurrent .Callable ;
86
87
* @since 26.0
87
88
*/
88
89
@ J2ktIncompatible
90
+ @ GwtIncompatible
89
91
public final class ExecutionSequencer {
90
92
91
93
private ExecutionSequencer () {}
Original file line number Diff line number Diff line change 14
14
15
15
package com .google .common .util .concurrent ;
16
16
17
+ import com .google .common .annotations .GwtIncompatible ;
17
18
import com .google .common .annotations .J2ktIncompatible ;
18
19
import java .util .Date ;
19
20
import java .util .concurrent .TimeUnit ;
20
21
import java .util .concurrent .locks .Condition ;
21
22
22
23
/** Forwarding wrapper around a {@code Condition}. */
23
24
@ J2ktIncompatible
25
+ @ GwtIncompatible
24
26
abstract class ForwardingCondition implements Condition {
25
27
abstract Condition delegate ();
26
28
Original file line number Diff line number Diff line change 14
14
15
15
package com .google .common .util .concurrent ;
16
16
17
+ import com .google .common .annotations .GwtIncompatible ;
17
18
import com .google .common .annotations .J2ktIncompatible ;
18
19
import java .util .concurrent .TimeUnit ;
19
20
import java .util .concurrent .locks .Condition ;
20
21
import java .util .concurrent .locks .Lock ;
21
22
22
23
/** Forwarding wrapper around a {@code Lock}. */
23
24
@ J2ktIncompatible
25
+ @ GwtIncompatible
24
26
abstract class ForwardingLock implements Lock {
25
27
abstract Lock delegate ();
26
28
Original file line number Diff line number Diff line change 16
16
17
17
import static java .lang .Math .min ;
18
18
19
+ import com .google .common .annotations .GwtIncompatible ;
19
20
import com .google .common .annotations .J2ktIncompatible ;
20
21
import java .util .concurrent .locks .LockSupport ;
21
22
import org .jspecify .annotations .Nullable ;
25
26
* signal on 32 bit devices running Android Q.
26
27
*/
27
28
@ J2ktIncompatible
29
+ @ GwtIncompatible
28
30
final class OverflowAvoidingLockSupport {
29
31
// Represents the max nanoseconds representable on a linux timespec with a 32 bit tv_sec
30
32
static final long MAX_NANOSECONDS_THRESHOLD = (1L + Integer .MAX_VALUE ) * 1_000_000_000L - 1L ;
You can’t perform that action at this time.
0 commit comments