Skip to content

Commit 76fca99

Browse files
cpovirkGoogle Java Core Libraries
authored and
Google Java Core Libraries
committed
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
1 parent 2a3fa8f commit 76fca99

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

android/guava/src/com/google/common/base/Suppliers.java

-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import static com.google.common.base.Preconditions.checkArgument;
2020
import static com.google.common.base.Preconditions.checkNotNull;
2121

22-
import com.google.common.annotations.Beta;
2322
import com.google.common.annotations.GwtCompatible;
2423
import com.google.common.annotations.GwtIncompatible;
2524
import com.google.common.annotations.J2ktIncompatible;
@@ -259,7 +258,6 @@ public String toString() {
259258
* @throws IllegalArgumentException if {@code duration} is not positive
260259
* @since 33.1.0
261260
*/
262-
@Beta // only until we're confident that Java 8+ APIs are safe for our Android users
263261
@J2ktIncompatible
264262
@GwtIncompatible // java.time.Duration
265263
@SuppressWarnings("Java7ApiChecker") // no more dangerous that wherever the user got the Duration

guava/src/com/google/common/base/Suppliers.java

-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import static com.google.common.base.Preconditions.checkArgument;
2020
import static com.google.common.base.Preconditions.checkNotNull;
2121

22-
import com.google.common.annotations.Beta;
2322
import com.google.common.annotations.GwtCompatible;
2423
import com.google.common.annotations.GwtIncompatible;
2524
import com.google.common.annotations.J2ktIncompatible;
@@ -259,7 +258,6 @@ public String toString() {
259258
* @throws IllegalArgumentException if {@code duration} is not positive
260259
* @since 33.1.0
261260
*/
262-
@Beta // only until we're confident that Java 8+ APIs are safe for our Android users
263261
@J2ktIncompatible
264262
@GwtIncompatible // java.time.Duration
265263
@SuppressWarnings("Java7ApiChecker") // no more dangerous that wherever the user got the Duration

0 commit comments

Comments
 (0)