aboutsummaryrefslogtreecommitdiff
path: root/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java')
-rw-r--r--guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java b/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
index 2d11a0863..ce5b73f47 100644
--- a/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
+++ b/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
@@ -18,6 +18,7 @@ package com.google.common.collect.testing.features;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.collect.testing.Helpers;
+import com.google.errorprone.annotations.CanIgnoreReturnValue;
import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Method;
@@ -55,6 +56,7 @@ public class FeatureUtil {
* @param features the set of features to expand
* @return the same set of features, expanded with all implied features
*/
+ @CanIgnoreReturnValue
public static Set<Feature<?>> addImpliedFeatures(Set<Feature<?>> features) {
Queue<Feature<?>> queue = new ArrayDeque<>(features);
while (!queue.isEmpty()) {
@@ -254,6 +256,7 @@ public class FeatureUtil {
* @throws ConflictingRequirementsException if the additional requirements are inconsistent with
* the existing requirements
*/
+ @CanIgnoreReturnValue
private static TesterRequirements incorporateRequirements(
TesterRequirements requirements, TesterRequirements moreRequirements, Object source)
throws ConflictingRequirementsException {