From b045bf3a99f4efc5964e8a4cffd5d81f0e3930c8 Mon Sep 17 00:00:00 2001 From: cpovirk Date: Fri, 18 Oct 2024 08:44:57 -0700 Subject: [PATCH] Suppress a suggestion that we use the `Duration` overload. (followup to cl/687302660) RELNOTES=n/a PiperOrigin-RevId: 687317647 --- .../test/com/google/common/testing/FakeTickerTest.java | 2 ++ .../test/com/google/common/testing/FakeTickerTest.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java b/android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java index 54174407289a..f46747ca99e3 100644 --- a/android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java +++ b/android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java @@ -37,6 +37,8 @@ * @author Jige Yu */ @GwtCompatible(emulated = true) +// We also want to test the TimeUnit overload (especially under GWT, where it's the only option). +@SuppressWarnings("SetAutoIncrementStep_Nanos") public class FakeTickerTest extends TestCase { @GwtIncompatible // NullPointerTester diff --git a/guava-testlib/test/com/google/common/testing/FakeTickerTest.java b/guava-testlib/test/com/google/common/testing/FakeTickerTest.java index f222c8244730..c700d354ea04 100644 --- a/guava-testlib/test/com/google/common/testing/FakeTickerTest.java +++ b/guava-testlib/test/com/google/common/testing/FakeTickerTest.java @@ -37,6 +37,8 @@ * @author Jige Yu */ @GwtCompatible(emulated = true) +// We also want to test the TimeUnit overload (especially under GWT, where it's the only option). +@SuppressWarnings("SetAutoIncrementStep_Nanos") public class FakeTickerTest extends TestCase { @GwtIncompatible // NullPointerTester