Skip to content

Commit b045bf3

Browse files
cpovirkGoogle Java Core Libraries
authored andcommitted
Suppress a suggestion that we use the Duration overload.
(followup to cl/687302660) RELNOTES=n/a PiperOrigin-RevId: 687317647
1 parent b0461b7 commit b045bf3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
* @author Jige Yu
3838
*/
3939
@GwtCompatible(emulated = true)
40+
// We also want to test the TimeUnit overload (especially under GWT, where it's the only option).
41+
@SuppressWarnings("SetAutoIncrementStep_Nanos")
4042
public class FakeTickerTest extends TestCase {
4143

4244
@GwtIncompatible // NullPointerTester

guava-testlib/test/com/google/common/testing/FakeTickerTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
* @author Jige Yu
3838
*/
3939
@GwtCompatible(emulated = true)
40+
// We also want to test the TimeUnit overload (especially under GWT, where it's the only option).
41+
@SuppressWarnings("SetAutoIncrementStep_Nanos")
4042
public class FakeTickerTest extends TestCase {
4143

4244
@GwtIncompatible // NullPointerTester

0 commit comments

Comments
 (0)