Skip to content

Commit

Permalink
Remove J2ObjCIncompatible from Stopwatch.elapsed
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 471121659
  • Loading branch information
java-team-github-bot authored and Google Java Core Libraries committed Aug 30, 2022
1 parent 807a593 commit 32f7a37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guava/src/com/google/common/base/Stopwatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -217,6 +218,7 @@ public long elapsed(TimeUnit desiredUnit) {
* @since 22.0
*/
@GwtIncompatible
@J2ObjCIncompatible
public Duration elapsed() {
return Duration.ofNanos(elapsedNanos());
}
Expand Down

0 comments on commit 32f7a37

Please sign in to comment.