diff options
Diffstat (limited to 'guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java')
-rw-r--r-- | guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java b/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java index b2fd7ae78..a0d535ca8 100644 --- a/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java +++ b/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java @@ -18,6 +18,7 @@ package com.google.common.collect; import static com.google.common.base.Preconditions.checkArgument; +import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; @@ -31,6 +32,7 @@ public final class MapMaker { public MapMaker() {} + @CanIgnoreReturnValue public MapMaker initialCapacity(int initialCapacity) { if (initialCapacity < 0) { throw new IllegalArgumentException(); @@ -39,6 +41,7 @@ public final class MapMaker { return this; } + @CanIgnoreReturnValue public MapMaker concurrencyLevel(int concurrencyLevel) { checkArgument( concurrencyLevel >= 1, "concurrency level (%s) must be at least 1", concurrencyLevel); |