Skip to content

Commit

Permalink
Remove @Beta from Longs.tryParse(...) (and friends).
Browse files Browse the repository at this point in the history
Fixes #6020

RELNOTES=`primitives`: Removed `@Beta` from `Longs.tryParse(...)` (and friends).
PiperOrigin-RevId: 523143161
  • Loading branch information
kluever authored and Google Java Core Libraries committed Apr 10, 2023
1 parent df0081f commit b3d4856
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,6 @@ public String toString() {
* @throws NullPointerException if {@code string} is {@code null}
* @since 14.0
*/
@Beta
@GwtIncompatible // regular expressions
@CheckForNull
public static Double tryParse(String string) {
Expand Down
1 change: 0 additions & 1 deletion android/guava/src/com/google/common/primitives/Floats.java
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,6 @@ float[] toFloatArray() {
* @throws NullPointerException if {@code string} is {@code null}
* @since 14.0
*/
@Beta
@GwtIncompatible // regular expressions
@CheckForNull
public static Float tryParse(String string) {
Expand Down
2 changes: 0 additions & 2 deletions android/guava/src/com/google/common/primitives/Ints.java
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,6 @@ int[] toIntArray() {
* @throws NullPointerException if {@code string} is {@code null}
* @since 11.0
*/
@Beta
@CheckForNull
public static Integer tryParse(String string) {
return tryParse(string, 10);
Expand All @@ -810,7 +809,6 @@ public static Integer tryParse(String string) {
* @throws NullPointerException if {@code string} is {@code null}
* @since 19.0
*/
@Beta
@CheckForNull
public static Integer tryParse(String string, int radix) {
Long result = Longs.tryParse(string, radix);
Expand Down
2 changes: 0 additions & 2 deletions android/guava/src/com/google/common/primitives/Longs.java
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ static int digit(char c) {
* @throws NullPointerException if {@code string} is {@code null}
* @since 14.0
*/
@Beta
@CheckForNull
public static Long tryParse(String string) {
return tryParse(string, 10);
Expand All @@ -387,7 +386,6 @@ public static Long tryParse(String string) {
* @throws NullPointerException if {@code string} is {@code null}
* @since 19.0
*/
@Beta
@CheckForNull
public static Long tryParse(String string, int radix) {
if (checkNotNull(string).isEmpty()) {
Expand Down
1 change: 0 additions & 1 deletion guava/src/com/google/common/primitives/Doubles.java
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,6 @@ public String toString() {
* @throws NullPointerException if {@code string} is {@code null}
* @since 14.0
*/
@Beta
@GwtIncompatible // regular expressions
@CheckForNull
public static Double tryParse(String string) {
Expand Down
1 change: 0 additions & 1 deletion guava/src/com/google/common/primitives/Floats.java
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,6 @@ float[] toFloatArray() {
* @throws NullPointerException if {@code string} is {@code null}
* @since 14.0
*/
@Beta
@GwtIncompatible // regular expressions
@CheckForNull
public static Float tryParse(String string) {
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/primitives/Ints.java
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,6 @@ int[] toIntArray() {
* @throws NullPointerException if {@code string} is {@code null}
* @since 11.0
*/
@Beta
@CheckForNull
public static Integer tryParse(String string) {
return tryParse(string, 10);
Expand All @@ -817,7 +816,6 @@ public static Integer tryParse(String string) {
* @throws NullPointerException if {@code string} is {@code null}
* @since 19.0
*/
@Beta
@CheckForNull
public static Integer tryParse(String string, int radix) {
Long result = Longs.tryParse(string, radix);
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/primitives/Longs.java
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ static int digit(char c) {
* @throws NullPointerException if {@code string} is {@code null}
* @since 14.0
*/
@Beta
@CheckForNull
public static Long tryParse(String string) {
return tryParse(string, 10);
Expand All @@ -389,7 +388,6 @@ public static Long tryParse(String string) {
* @throws NullPointerException if {@code string} is {@code null}
* @since 19.0
*/
@Beta
@CheckForNull
public static Long tryParse(String string, int radix) {
if (checkNotNull(string).isEmpty()) {
Expand Down

0 comments on commit b3d4856

Please sign in to comment.