From 76fca99db95ce9c8e55bb9c37fd0e44ef0451a80 Mon Sep 17 00:00:00 2001 From: cpovirk Date: Tue, 25 Jun 2024 10:43:32 -0700 Subject: [PATCH] Remove `@Beta` from the `Duration` overload of `Suppliers.memoizeWithExpiration` It would have made sense to do this as part of cl/639518116. And probably we should never have used `@Beta` in the _JRE_ flavor? (Maybe I was just trying to minimize diffs between the flavors?) RELNOTES=n/a PiperOrigin-RevId: 646531210 --- android/guava/src/com/google/common/base/Suppliers.java | 2 -- guava/src/com/google/common/base/Suppliers.java | 2 -- 2 files changed, 4 deletions(-) diff --git a/android/guava/src/com/google/common/base/Suppliers.java b/android/guava/src/com/google/common/base/Suppliers.java index c7cc3d0e23bd..15f07660ecd6 100644 --- a/android/guava/src/com/google/common/base/Suppliers.java +++ b/android/guava/src/com/google/common/base/Suppliers.java @@ -19,7 +19,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.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -259,7 +258,6 @@ public String toString() { * @throws IllegalArgumentException if {@code duration} is not positive * @since 33.1.0 */ - @Beta // only until we're confident that Java 8+ APIs are safe for our Android users @J2ktIncompatible @GwtIncompatible // java.time.Duration @SuppressWarnings("Java7ApiChecker") // no more dangerous that wherever the user got the Duration diff --git a/guava/src/com/google/common/base/Suppliers.java b/guava/src/com/google/common/base/Suppliers.java index c7cc3d0e23bd..15f07660ecd6 100644 --- a/guava/src/com/google/common/base/Suppliers.java +++ b/guava/src/com/google/common/base/Suppliers.java @@ -19,7 +19,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.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; @@ -259,7 +258,6 @@ public String toString() { * @throws IllegalArgumentException if {@code duration} is not positive * @since 33.1.0 */ - @Beta // only until we're confident that Java 8+ APIs are safe for our Android users @J2ktIncompatible @GwtIncompatible // java.time.Duration @SuppressWarnings("Java7ApiChecker") // no more dangerous that wherever the user got the Duration