From c86c09dc3da472660efed40e8b0879f8461a6197 Mon Sep 17 00:00:00 2001 From: cpovirk Date: Sun, 2 Jun 2024 06:32:20 -0700 Subject: [PATCH] Remove `@Beta` from the `guava-android` `Collector` APIs. (progress toward https://github.com/google/guava/issues/6567) RELNOTES=`collect`: Removed `@Beta` from the `guava-android` `Collector` APIs. PiperOrigin-RevId: 639518116 --- android/guava/src/com/google/common/collect/Comparators.java | 3 --- .../guava/src/com/google/common/collect/ImmutableBiMap.java | 4 ---- .../guava/src/com/google/common/collect/ImmutableList.java | 2 -- .../src/com/google/common/collect/ImmutableListMultimap.java | 3 --- .../guava/src/com/google/common/collect/ImmutableMap.java | 3 --- .../src/com/google/common/collect/ImmutableMultiset.java | 3 --- .../src/com/google/common/collect/ImmutableRangeMap.java | 2 -- .../src/com/google/common/collect/ImmutableRangeSet.java | 2 -- .../guava/src/com/google/common/collect/ImmutableSet.java | 2 -- .../src/com/google/common/collect/ImmutableSetMultimap.java | 3 --- .../src/com/google/common/collect/ImmutableSortedMap.java | 5 ----- .../com/google/common/collect/ImmutableSortedMultiset.java | 5 ----- .../src/com/google/common/collect/ImmutableSortedSet.java | 3 --- .../guava/src/com/google/common/collect/ImmutableTable.java | 3 --- android/guava/src/com/google/common/collect/Maps.java | 3 --- .../guava/src/com/google/common/collect/MoreCollectors.java | 2 -- android/guava/src/com/google/common/collect/Multimaps.java | 3 --- android/guava/src/com/google/common/collect/Multisets.java | 2 -- android/guava/src/com/google/common/collect/Sets.java | 2 -- android/guava/src/com/google/common/collect/Tables.java | 3 --- 20 files changed, 58 deletions(-) diff --git a/android/guava/src/com/google/common/collect/Comparators.java b/android/guava/src/com/google/common/collect/Comparators.java index acab2fba41fa..f40e6b9fb258 100644 --- a/android/guava/src/com/google/common/collect/Comparators.java +++ b/android/guava/src/com/google/common/collect/Comparators.java @@ -19,7 +19,6 @@ import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.collect.CollectPreconditions.checkNonnegative; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import java.util.Comparator; import java.util.Iterator; @@ -132,7 +131,6 @@ private Comparators() {} */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> least( int k, Comparator comparator) { checkNonnegative(k, "k"); @@ -167,7 +165,6 @@ private Comparators() {} */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> greatest( int k, Comparator comparator) { return least(k, comparator.reversed()); diff --git a/android/guava/src/com/google/common/collect/ImmutableBiMap.java b/android/guava/src/com/google/common/collect/ImmutableBiMap.java index 552e7f5cda16..61a2d03492f5 100644 --- a/android/guava/src/com/google/common/collect/ImmutableBiMap.java +++ b/android/guava/src/com/google/common/collect/ImmutableBiMap.java @@ -19,7 +19,6 @@ import static com.google.common.collect.CollectPreconditions.checkEntryNotNull; import static com.google.common.collect.CollectPreconditions.checkNonnegative; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.errorprone.annotations.CanIgnoreReturnValue; @@ -62,7 +61,6 @@ public abstract class ImmutableBiMap extends ImmutableMap implements */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableBiMap( Function keyFunction, @@ -632,7 +630,6 @@ private void readObject(ObjectInputStream stream) throws InvalidObjectException @DoNotCall("Use toImmutableBiMap") @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableMap( Function keyFunction, @@ -653,7 +650,6 @@ private void readObject(ObjectInputStream stream) throws InvalidObjectException @DoNotCall("Use toImmutableBiMap") @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableMap( Function keyFunction, diff --git a/android/guava/src/com/google/common/collect/ImmutableList.java b/android/guava/src/com/google/common/collect/ImmutableList.java index 197e0c046266..41a1eb085b24 100644 --- a/android/guava/src/com/google/common/collect/ImmutableList.java +++ b/android/guava/src/com/google/common/collect/ImmutableList.java @@ -25,7 +25,6 @@ import static com.google.common.collect.ObjectArrays.checkElementsNotNull; import static com.google.common.collect.RegularImmutableList.EMPTY; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -72,7 +71,6 @@ public abstract class ImmutableList extends ImmutableCollection */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableList() { return CollectCollectors.toImmutableList(); } diff --git a/android/guava/src/com/google/common/collect/ImmutableListMultimap.java b/android/guava/src/com/google/common/collect/ImmutableListMultimap.java index ada78684fba2..0a07361cf27a 100644 --- a/android/guava/src/com/google/common/collect/ImmutableListMultimap.java +++ b/android/guava/src/com/google/common/collect/ImmutableListMultimap.java @@ -18,7 +18,6 @@ import static java.util.Objects.requireNonNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -84,7 +83,6 @@ public class ImmutableListMultimap extends ImmutableMultimap */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableListMultimap( Function keyFunction, @@ -125,7 +123,6 @@ public class ImmutableListMultimap extends ImmutableMultimap */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> flatteningToImmutableListMultimap( Function keyFunction, diff --git a/android/guava/src/com/google/common/collect/ImmutableMap.java b/android/guava/src/com/google/common/collect/ImmutableMap.java index 3bc8db700e87..47e7614f6a72 100644 --- a/android/guava/src/com/google/common/collect/ImmutableMap.java +++ b/android/guava/src/com/google/common/collect/ImmutableMap.java @@ -22,7 +22,6 @@ import static com.google.common.collect.CollectPreconditions.checkNonnegative; import static java.util.Objects.requireNonNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -85,7 +84,6 @@ public abstract class ImmutableMap implements Map, Serializable { */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableMap( Function keyFunction, @@ -108,7 +106,6 @@ public abstract class ImmutableMap implements Map, Serializable { */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableMap( Function keyFunction, diff --git a/android/guava/src/com/google/common/collect/ImmutableMultiset.java b/android/guava/src/com/google/common/collect/ImmutableMultiset.java index f5d06865775d..fda6abb12d6a 100644 --- a/android/guava/src/com/google/common/collect/ImmutableMultiset.java +++ b/android/guava/src/com/google/common/collect/ImmutableMultiset.java @@ -19,7 +19,6 @@ import static com.google.common.base.Preconditions.checkNotNull; import static java.util.Objects.requireNonNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -70,7 +69,6 @@ public abstract class ImmutableMultiset extends ImmutableMultisetGwtSerializa */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableMultiset() { return CollectCollectors.toImmutableMultiset(Function.identity(), e -> 1); } @@ -88,7 +86,6 @@ public abstract class ImmutableMultiset extends ImmutableMultisetGwtSerializa */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableMultiset( Function elementFunction, diff --git a/android/guava/src/com/google/common/collect/ImmutableRangeMap.java b/android/guava/src/com/google/common/collect/ImmutableRangeMap.java index 75f760c7b1d3..a72904f22760 100644 --- a/android/guava/src/com/google/common/collect/ImmutableRangeMap.java +++ b/android/guava/src/com/google/common/collect/ImmutableRangeMap.java @@ -18,7 +18,6 @@ import static com.google.common.base.Preconditions.checkElementIndex; import static com.google.common.base.Preconditions.checkNotNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.collect.SortedLists.KeyAbsentBehavior; @@ -61,7 +60,6 @@ public class ImmutableRangeMap, V> implements RangeMap, V> Collector> toImmutableRangeMap( Function> keyFunction, diff --git a/android/guava/src/com/google/common/collect/ImmutableRangeSet.java b/android/guava/src/com/google/common/collect/ImmutableRangeSet.java index ac30f96d1982..79dc5c41ed10 100644 --- a/android/guava/src/com/google/common/collect/ImmutableRangeSet.java +++ b/android/guava/src/com/google/common/collect/ImmutableRangeSet.java @@ -22,7 +22,6 @@ import static com.google.common.collect.SortedLists.KeyPresentBehavior.ANY_PRESENT; import static java.util.Objects.requireNonNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.collect.SortedLists.KeyAbsentBehavior; @@ -70,7 +69,6 @@ public final class ImmutableRangeSet extends AbstractRange */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static > Collector, ?, ImmutableRangeSet> toImmutableRangeSet() { return CollectCollectors.toImmutableRangeSet(); diff --git a/android/guava/src/com/google/common/collect/ImmutableSet.java b/android/guava/src/com/google/common/collect/ImmutableSet.java index f85ef54bfe31..4bf8a751fe23 100644 --- a/android/guava/src/com/google/common/collect/ImmutableSet.java +++ b/android/guava/src/com/google/common/collect/ImmutableSet.java @@ -22,7 +22,6 @@ import static com.google.common.collect.ObjectArrays.checkElementNotNull; import static java.util.Objects.requireNonNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.annotations.VisibleForTesting; @@ -64,7 +63,6 @@ public abstract class ImmutableSet extends ImmutableCollection implements */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableSet() { return CollectCollectors.toImmutableSet(); } diff --git a/android/guava/src/com/google/common/collect/ImmutableSetMultimap.java b/android/guava/src/com/google/common/collect/ImmutableSetMultimap.java index 363285bfdce6..209b74f36a9d 100644 --- a/android/guava/src/com/google/common/collect/ImmutableSetMultimap.java +++ b/android/guava/src/com/google/common/collect/ImmutableSetMultimap.java @@ -19,7 +19,6 @@ import static com.google.common.base.Preconditions.checkNotNull; import static java.util.Objects.requireNonNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -92,7 +91,6 @@ public class ImmutableSetMultimap extends ImmutableMultimap */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableSetMultimap( Function keyFunction, @@ -142,7 +140,6 @@ public class ImmutableSetMultimap extends ImmutableMultimap */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> flatteningToImmutableSetMultimap( Function keyFunction, diff --git a/android/guava/src/com/google/common/collect/ImmutableSortedMap.java b/android/guava/src/com/google/common/collect/ImmutableSortedMap.java index a34d87d3f568..bccc8a074afb 100644 --- a/android/guava/src/com/google/common/collect/ImmutableSortedMap.java +++ b/android/guava/src/com/google/common/collect/ImmutableSortedMap.java @@ -22,7 +22,6 @@ import static com.google.common.collect.Maps.keyOrNull; import static java.util.Objects.requireNonNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -79,7 +78,6 @@ public final class ImmutableSortedMap extends ImmutableMap */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableSortedMap( Comparator comparator, @@ -101,7 +99,6 @@ public final class ImmutableSortedMap extends ImmutableMap */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableSortedMap( Comparator comparator, @@ -1229,7 +1226,6 @@ private void readObject(ObjectInputStream stream) throws InvalidObjectException @Deprecated @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableMap( Function keyFunction, @@ -1250,7 +1246,6 @@ private void readObject(ObjectInputStream stream) throws InvalidObjectException @Deprecated @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableMap( Function keyFunction, diff --git a/android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java b/android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java index 03da1a982889..5da8f9c5ac60 100644 --- a/android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java +++ b/android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java @@ -17,7 +17,6 @@ import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.annotations.VisibleForTesting; @@ -73,7 +72,6 @@ public abstract class ImmutableSortedMultiset extends ImmutableMultiset */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableSortedMultiset( Comparator comparator) { return toImmutableSortedMultiset(comparator, Function.identity(), e -> 1); @@ -92,7 +90,6 @@ public abstract class ImmutableSortedMultiset extends ImmutableMultiset */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableSortedMultiset( Comparator comparator, @@ -766,7 +763,6 @@ private void readObject(ObjectInputStream stream) throws InvalidObjectException @Deprecated @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableMultiset() { throw new UnsupportedOperationException(); } @@ -784,7 +780,6 @@ private void readObject(ObjectInputStream stream) throws InvalidObjectException @Deprecated @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableMultiset( Function elementFunction, diff --git a/android/guava/src/com/google/common/collect/ImmutableSortedSet.java b/android/guava/src/com/google/common/collect/ImmutableSortedSet.java index 6cdcf22c244c..59940f317fed 100644 --- a/android/guava/src/com/google/common/collect/ImmutableSortedSet.java +++ b/android/guava/src/com/google/common/collect/ImmutableSortedSet.java @@ -20,7 +20,6 @@ import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.collect.ObjectArrays.checkElementsNotNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -75,7 +74,6 @@ public abstract class ImmutableSortedSet extends ImmutableSet */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableSortedSet( Comparator comparator) { return CollectCollectors.toImmutableSortedSet(comparator); @@ -803,7 +801,6 @@ Object writeReplace() { @Deprecated @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableSet() { throw new UnsupportedOperationException(); } diff --git a/android/guava/src/com/google/common/collect/ImmutableTable.java b/android/guava/src/com/google/common/collect/ImmutableTable.java index a342ec0c46dd..27e17d3431f4 100644 --- a/android/guava/src/com/google/common/collect/ImmutableTable.java +++ b/android/guava/src/com/google/common/collect/ImmutableTable.java @@ -18,7 +18,6 @@ import static com.google.common.base.Preconditions.checkNotNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -66,7 +65,6 @@ public abstract class ImmutableTable extends AbstractTable */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableTable( Function rowFunction, @@ -88,7 +86,6 @@ public abstract class ImmutableTable extends AbstractTable */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static Collector> toImmutableTable( Function rowFunction, diff --git a/android/guava/src/com/google/common/collect/Maps.java b/android/guava/src/com/google/common/collect/Maps.java index addb3bb14976..15c8c1ab8935 100644 --- a/android/guava/src/com/google/common/collect/Maps.java +++ b/android/guava/src/com/google/common/collect/Maps.java @@ -25,7 +25,6 @@ import static java.util.Collections.singletonMap; import static java.util.Objects.requireNonNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -195,7 +194,6 @@ public static , V> ImmutableMap immutableEnumMap( */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static , V> Collector> toImmutableEnumMap( java.util.function.Function keyFunction, @@ -216,7 +214,6 @@ public static , V> ImmutableMap immutableEnumMap( */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static , V> Collector> toImmutableEnumMap( java.util.function.Function keyFunction, diff --git a/android/guava/src/com/google/common/collect/MoreCollectors.java b/android/guava/src/com/google/common/collect/MoreCollectors.java index 7f62735725b0..0db61b6684ee 100644 --- a/android/guava/src/com/google/common/collect/MoreCollectors.java +++ b/android/guava/src/com/google/common/collect/MoreCollectors.java @@ -19,7 +19,6 @@ import static com.google.common.base.Preconditions.checkNotNull; import static java.util.Collections.emptyList; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import java.util.ArrayList; import java.util.List; @@ -40,7 +39,6 @@ @ElementTypesAreNonnullByDefault @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. -@Beta // TODO: b/288085449 - Remove. public final class MoreCollectors { /* diff --git a/android/guava/src/com/google/common/collect/Multimaps.java b/android/guava/src/com/google/common/collect/Multimaps.java index b314f3c8994c..d5c027fbfa1f 100644 --- a/android/guava/src/com/google/common/collect/Multimaps.java +++ b/android/guava/src/com/google/common/collect/Multimaps.java @@ -22,7 +22,6 @@ import static com.google.common.collect.NullnessCasts.uncheckedCastNullableTToT; import static java.util.Objects.requireNonNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -113,7 +112,6 @@ private Multimaps() {} */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static < T extends @Nullable Object, K extends @Nullable Object, @@ -161,7 +159,6 @@ private Multimaps() {} */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static < T extends @Nullable Object, K extends @Nullable Object, diff --git a/android/guava/src/com/google/common/collect/Multisets.java b/android/guava/src/com/google/common/collect/Multisets.java index f5b23f654739..f73b9a22c805 100644 --- a/android/guava/src/com/google/common/collect/Multisets.java +++ b/android/guava/src/com/google/common/collect/Multisets.java @@ -22,7 +22,6 @@ import static com.google.common.collect.CollectPreconditions.checkRemove; import static java.util.Objects.requireNonNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.base.Objects; import com.google.common.base.Predicate; @@ -83,7 +82,6 @@ private Multisets() {} */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static > Collector toMultiset( Function elementFunction, diff --git a/android/guava/src/com/google/common/collect/Sets.java b/android/guava/src/com/google/common/collect/Sets.java index ef10bfa4cd3a..943e71957d64 100644 --- a/android/guava/src/com/google/common/collect/Sets.java +++ b/android/guava/src/com/google/common/collect/Sets.java @@ -20,7 +20,6 @@ import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.collect.CollectPreconditions.checkNonnegative; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -150,7 +149,6 @@ public static > ImmutableSet immutableEnumSet(Iterable e */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static > Collector> toImmutableEnumSet() { return CollectCollectors.toImmutableEnumSet(); } diff --git a/android/guava/src/com/google/common/collect/Tables.java b/android/guava/src/com/google/common/collect/Tables.java index 2267fc5bd415..789a57e1e2c5 100644 --- a/android/guava/src/com/google/common/collect/Tables.java +++ b/android/guava/src/com/google/common/collect/Tables.java @@ -20,7 +20,6 @@ import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.collect.NullnessCasts.uncheckedCastNullableTToT; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.base.Function; import com.google.common.base.Objects; @@ -68,7 +67,6 @@ private Tables() {} */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static < T extends @Nullable Object, R extends @Nullable Object, @@ -100,7 +98,6 @@ private Tables() {} */ @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"}) @IgnoreJRERequirement // Users will use this only if they're already using streams. - @Beta // TODO: b/288085449 - Remove. public static < T extends @Nullable Object, R extends @Nullable Object,