Skip to content

Commit

Permalink
Remove @Beta from Multimaps.asMap(...).
Browse files Browse the repository at this point in the history
RELNOTES=Remove `@Beta` from `Multimaps.asMap(...)`.
PiperOrigin-RevId: 523141346
  • Loading branch information
kluever authored and Google Java Core Libraries committed Apr 10, 2023
1 parent 211907c commit df0081f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions android/guava/src/com/google/common/collect/Multimaps.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -963,7 +962,6 @@ Collection<Entry<K, V>> unmodifiableEntries(Collection<Entry<K, V>> entries) {
*
* @since 15.0
*/
@Beta
@SuppressWarnings("unchecked")
// safe by specification of ListMultimap.asMap()
public static <K extends @Nullable Object, V extends @Nullable Object> Map<K, List<V>> asMap(
Expand All @@ -977,7 +975,6 @@ Collection<Entry<K, V>> unmodifiableEntries(Collection<Entry<K, V>> entries) {
*
* @since 15.0
*/
@Beta
@SuppressWarnings("unchecked")
// safe by specification of SetMultimap.asMap()
public static <K extends @Nullable Object, V extends @Nullable Object> Map<K, Set<V>> asMap(
Expand All @@ -991,7 +988,6 @@ Collection<Entry<K, V>> unmodifiableEntries(Collection<Entry<K, V>> entries) {
*
* @since 15.0
*/
@Beta
@SuppressWarnings("unchecked")
// safe by specification of SortedSetMultimap.asMap()
public static <K extends @Nullable Object, V extends @Nullable Object> Map<K, SortedSet<V>> asMap(
Expand All @@ -1005,7 +1001,6 @@ Collection<Entry<K, V>> unmodifiableEntries(Collection<Entry<K, V>> entries) {
*
* @since 15.0
*/
@Beta
public static <K extends @Nullable Object, V extends @Nullable Object>
Map<K, Collection<V>> asMap(Multimap<K, V> multimap) {
return multimap.asMap();
Expand Down
4 changes: 0 additions & 4 deletions guava/src/com/google/common/collect/Multimaps.java
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,6 @@ Collection<Entry<K, V>> unmodifiableEntries(Collection<Entry<K, V>> entries) {
*
* @since 15.0
*/
@Beta
@SuppressWarnings("unchecked")
// safe by specification of ListMultimap.asMap()
public static <K extends @Nullable Object, V extends @Nullable Object> Map<K, List<V>> asMap(
Expand All @@ -1081,7 +1080,6 @@ Collection<Entry<K, V>> unmodifiableEntries(Collection<Entry<K, V>> entries) {
*
* @since 15.0
*/
@Beta
@SuppressWarnings("unchecked")
// safe by specification of SetMultimap.asMap()
public static <K extends @Nullable Object, V extends @Nullable Object> Map<K, Set<V>> asMap(
Expand All @@ -1095,7 +1093,6 @@ Collection<Entry<K, V>> unmodifiableEntries(Collection<Entry<K, V>> entries) {
*
* @since 15.0
*/
@Beta
@SuppressWarnings("unchecked")
// safe by specification of SortedSetMultimap.asMap()
public static <K extends @Nullable Object, V extends @Nullable Object> Map<K, SortedSet<V>> asMap(
Expand All @@ -1109,7 +1106,6 @@ Collection<Entry<K, V>> unmodifiableEntries(Collection<Entry<K, V>> entries) {
*
* @since 15.0
*/
@Beta
public static <K extends @Nullable Object, V extends @Nullable Object>
Map<K, Collection<V>> asMap(Multimap<K, V> multimap) {
return multimap.asMap();
Expand Down

0 comments on commit df0081f

Please sign in to comment.