Skip to content

Commit 879482a

Browse files
clmronshapiro
authored andcommitted
Suppress warnings on thread suspending test.
RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=210116708
1 parent 1b12d0f commit 879482a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ public String pendingToString() {
236236
* get() call. As measurements of time are prone to flakiness, it tries to assert based on ranges
237237
* derived from observing how much time actually passed for various operations.
238238
*/
239+
@SuppressWarnings({"DeprecatedThreadMethods", "ThreadPriorityCheck"})
239240
public void testToString_delayedTimeout() throws Exception {
240241
TimedWaiterThread thread =
241242
new TimedWaiterThread(new AbstractFuture<Object>() {}, 2, TimeUnit.SECONDS);

guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ public String pendingToString() {
236236
* get() call. As measurements of time are prone to flakiness, it tries to assert based on ranges
237237
* derived from observing how much time actually passed for various operations.
238238
*/
239+
@SuppressWarnings({"DeprecatedThreadMethods", "ThreadPriorityCheck"})
239240
public void testToString_delayedTimeout() throws Exception {
240241
TimedWaiterThread thread =
241242
new TimedWaiterThread(new AbstractFuture<Object>() {}, 2, TimeUnit.SECONDS);

0 commit comments

Comments
 (0)