diff --git a/android/guava/src/com/google/common/collect/CompactHashMap.java b/android/guava/src/com/google/common/collect/CompactHashMap.java index d664c46acb2e..20fcfba6a0bc 100644 --- a/android/guava/src/com/google/common/collect/CompactHashMap.java +++ b/android/guava/src/com/google/common/collect/CompactHashMap.java @@ -255,7 +255,6 @@ void init(int expectedSize) { } /** Returns whether arrays need to be allocated. */ - @VisibleForTesting boolean needsAllocArrays() { return table == null; } @@ -291,7 +290,6 @@ Map createHashFloodingResistantDelegate(int tableSize) { return new LinkedHashMap<>(tableSize, 1.0f); } - @VisibleForTesting @CanIgnoreReturnValue Map convertToHashFloodingResistantImplementation() { Map newDelegate = createHashFloodingResistantDelegate(hashTableMask() + 1); diff --git a/android/guava/src/com/google/common/collect/CompactHashSet.java b/android/guava/src/com/google/common/collect/CompactHashSet.java index d6e37f69aaa7..b90c678c030b 100644 --- a/android/guava/src/com/google/common/collect/CompactHashSet.java +++ b/android/guava/src/com/google/common/collect/CompactHashSet.java @@ -221,7 +221,6 @@ void init(int expectedSize) { } /** Returns whether arrays need to be allocated. */ - @VisibleForTesting boolean needsAllocArrays() { return table == null; } @@ -256,7 +255,6 @@ private Set createHashFloodingResistantDelegate(int tableSize) { return new LinkedHashSet<>(tableSize, 1.0f); } - @VisibleForTesting @CanIgnoreReturnValue Set convertToHashFloodingResistantImplementation() { Set newDelegate = createHashFloodingResistantDelegate(hashTableMask() + 1); diff --git a/android/guava/src/com/google/common/collect/Ordering.java b/android/guava/src/com/google/common/collect/Ordering.java index d7dd33141459..6483ebfc06de 100644 --- a/android/guava/src/com/google/common/collect/Ordering.java +++ b/android/guava/src/com/google/common/collect/Ordering.java @@ -959,7 +959,6 @@ public int binarySearch( * Object[])} comparator when comparing a value outside the set of values it can compare. * Extending {@link ClassCastException} may seem odd, but it is required. */ - @VisibleForTesting static class IncomparableValueException extends ClassCastException { final Object value; diff --git a/guava/src/com/google/common/collect/CompactHashMap.java b/guava/src/com/google/common/collect/CompactHashMap.java index c5cac7ca5d38..e2618e21ceb1 100644 --- a/guava/src/com/google/common/collect/CompactHashMap.java +++ b/guava/src/com/google/common/collect/CompactHashMap.java @@ -259,7 +259,6 @@ void init(int expectedSize) { } /** Returns whether arrays need to be allocated. */ - @VisibleForTesting boolean needsAllocArrays() { return table == null; } @@ -295,7 +294,6 @@ Map createHashFloodingResistantDelegate(int tableSize) { return new LinkedHashMap<>(tableSize, 1.0f); } - @VisibleForTesting @CanIgnoreReturnValue Map convertToHashFloodingResistantImplementation() { Map newDelegate = createHashFloodingResistantDelegate(hashTableMask() + 1); diff --git a/guava/src/com/google/common/collect/CompactHashSet.java b/guava/src/com/google/common/collect/CompactHashSet.java index 75e6bf767cee..15d502111b5c 100644 --- a/guava/src/com/google/common/collect/CompactHashSet.java +++ b/guava/src/com/google/common/collect/CompactHashSet.java @@ -225,7 +225,6 @@ void init(int expectedSize) { } /** Returns whether arrays need to be allocated. */ - @VisibleForTesting boolean needsAllocArrays() { return table == null; } @@ -260,7 +259,6 @@ private Set createHashFloodingResistantDelegate(int tableSize) { return new LinkedHashSet<>(tableSize, 1.0f); } - @VisibleForTesting @CanIgnoreReturnValue Set convertToHashFloodingResistantImplementation() { Set newDelegate = createHashFloodingResistantDelegate(hashTableMask() + 1); diff --git a/guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java b/guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java index bf45138f778b..920133577dc7 100644 --- a/guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java +++ b/guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java @@ -20,7 +20,6 @@ import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; -import com.google.common.annotations.VisibleForTesting; import com.google.errorprone.annotations.concurrent.LazyInit; import com.google.j2objc.annotations.RetainedWith; import com.google.j2objc.annotations.WeakOuter; @@ -35,7 +34,6 @@ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault final class JdkBackedImmutableBiMap extends ImmutableBiMap { - @VisibleForTesting static ImmutableBiMap create(int n, @Nullable Entry[] entryArray) { Map forwardDelegate = Maps.newHashMapWithExpectedSize(n); Map backwardDelegate = Maps.newHashMapWithExpectedSize(n); diff --git a/guava/src/com/google/common/collect/Ordering.java b/guava/src/com/google/common/collect/Ordering.java index d7dd33141459..6483ebfc06de 100644 --- a/guava/src/com/google/common/collect/Ordering.java +++ b/guava/src/com/google/common/collect/Ordering.java @@ -959,7 +959,6 @@ public int binarySearch( * Object[])} comparator when comparing a value outside the set of values it can compare. * Extending {@link ClassCastException} may seem odd, but it is required. */ - @VisibleForTesting static class IncomparableValueException extends ClassCastException { final Object value; diff --git a/guava/src/com/google/common/collect/RegularImmutableMap.java b/guava/src/com/google/common/collect/RegularImmutableMap.java index 195aa3a29f28..9565dca82107 100644 --- a/guava/src/com/google/common/collect/RegularImmutableMap.java +++ b/guava/src/com/google/common/collect/RegularImmutableMap.java @@ -68,7 +68,7 @@ final class RegularImmutableMap extends ImmutableMap { * Maximum allowed length of a hash table bucket before falling back to a j.u.HashMap based * implementation. Experimentally determined. */ - @VisibleForTesting static final int MAX_HASH_BUCKET_LENGTH = 8; + static final int MAX_HASH_BUCKET_LENGTH = 8; // entries in insertion order @VisibleForTesting final transient Entry[] entries;