From 32f7a37c3dc87ef2056b04bdd9ac0e41fcedce10 Mon Sep 17 00:00:00 2001 From: Google Java Core Libraries Date: Tue, 30 Aug 2022 16:43:25 -0700 Subject: [PATCH] Remove J2ObjCIncompatible from Stopwatch.elapsed PiperOrigin-RevId: 471121659 --- guava/src/com/google/common/base/Stopwatch.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guava/src/com/google/common/base/Stopwatch.java b/guava/src/com/google/common/base/Stopwatch.java index f99f9697baeb..9d5282d24a55 100644 --- a/guava/src/com/google/common/base/Stopwatch.java +++ b/guava/src/com/google/common/base/Stopwatch.java @@ -27,6 +27,7 @@ import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.errorprone.annotations.CanIgnoreReturnValue; +import com.google.j2objc.annotations.J2ObjCIncompatible; import java.time.Duration; import java.util.concurrent.TimeUnit; @@ -217,6 +218,7 @@ public long elapsed(TimeUnit desiredUnit) { * @since 22.0 */ @GwtIncompatible + @J2ObjCIncompatible public Duration elapsed() { return Duration.ofNanos(elapsedNanos()); }