Skip to content

Commit

Permalink
Remove @Beta from the Duration overload of `Suppliers.memoizeWith…
Browse files Browse the repository at this point in the history
…Expiration`

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
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Jun 25, 2024
1 parent 2a3fa8f commit 76fca99
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions android/guava/src/com/google/common/base/Suppliers.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/base/Suppliers.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 76fca99

Please sign in to comment.