Enable GoodTime-API for Truth
RELNOTES=n/a
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=244108148
diff --git a/extensions/java8/src/main/java/com/google/common/truth/IntStreamSubject.java b/extensions/java8/src/main/java/com/google/common/truth/IntStreamSubject.java
index e7d3310..976d786 100644
--- a/extensions/java8/src/main/java/com/google/common/truth/IntStreamSubject.java
+++ b/extensions/java8/src/main/java/com/google/common/truth/IntStreamSubject.java
@@ -95,6 +95,7 @@
}
/** Fails if the subject does not contain at least one of the given elements. */
+ @SuppressWarnings("GoodTime") // false positive; b/122617528
public void containsAnyOf(int first, int second, int... rest) {
check().that(actualList).containsAnyOf(first, second, box(rest));
}
@@ -113,6 +114,7 @@
* on the object returned by this method. The expected elements must appear in the given order
* within the actual elements, but they are not required to be consecutive.
*/
+ @SuppressWarnings("GoodTime") // false positive; b/122617528
@CanIgnoreReturnValue
public Ordered containsAllOf(int first, int second, int... rest) {
return check().that(actualList).containsAllOf(first, second, box(rest));
@@ -164,6 +166,7 @@
* Fails if the subject contains any of the given elements. (Duplicates are irrelevant to this
* test, which fails if any of the actual elements equal any of the excluded.)
*/
+ @SuppressWarnings("GoodTime") // false positive; b/122617528
public void containsNoneOf(int first, int second, int... rest) {
check().that(actualList).containsNoneOf(first, second, box(rest));
}
diff --git a/extensions/java8/src/main/java/com/google/common/truth/LongStreamSubject.java b/extensions/java8/src/main/java/com/google/common/truth/LongStreamSubject.java
index 53e1111..dcb85ee 100644
--- a/extensions/java8/src/main/java/com/google/common/truth/LongStreamSubject.java
+++ b/extensions/java8/src/main/java/com/google/common/truth/LongStreamSubject.java
@@ -95,6 +95,7 @@
}
/** Fails if the subject does not contain at least one of the given elements. */
+ @SuppressWarnings("GoodTime") // false positive; b/122617528
public void containsAnyOf(long first, long second, long... rest) {
check().that(actualList).containsAnyOf(first, second, box(rest));
}
@@ -113,6 +114,7 @@
* on the object returned by this method. The expected elements must appear in the given order
* within the actual elements, but they are not required to be consecutive.
*/
+ @SuppressWarnings("GoodTime") // false positive; b/122617528
@CanIgnoreReturnValue
public Ordered containsAllOf(long first, long second, long... rest) {
return check().that(actualList).containsAllOf(first, second, box(rest));
@@ -164,6 +166,7 @@
* Fails if the subject contains any of the given elements. (Duplicates are irrelevant to this
* test, which fails if any of the actual elements equal any of the excluded.)
*/
+ @SuppressWarnings("GoodTime") // false positive; b/122617528
public void containsNoneOf(long first, long second, long... rest) {
check().that(actualList).containsNoneOf(first, second, box(rest));
}