25
25
import static java .math .RoundingMode .HALF_EVEN ;
26
26
import static java .math .RoundingMode .HALF_UP ;
27
27
28
- import com .google .common .annotations .Beta ;
29
28
import com .google .common .annotations .GwtCompatible ;
30
29
import com .google .common .annotations .GwtIncompatible ;
31
30
import com .google .common .annotations .J2ktIncompatible ;
@@ -65,7 +64,6 @@ public final class LongMath {
65
64
* long}, i.e. when {@code x > 2^62}
66
65
* @since 20.0
67
66
*/
68
- @ Beta
69
67
public static long ceilingPowerOfTwo (long x ) {
70
68
checkPositive ("x" , x );
71
69
if (x > MAX_SIGNED_POWER_OF_TWO ) {
@@ -81,7 +79,6 @@ public static long ceilingPowerOfTwo(long x) {
81
79
* @throws IllegalArgumentException if {@code x <= 0}
82
80
* @since 20.0
83
81
*/
84
- @ Beta
85
82
public static long floorPowerOfTwo (long x ) {
86
83
checkPositive ("x" , x );
87
84
@@ -659,7 +656,6 @@ public static long checkedPow(long b, int k) {
659
656
*
660
657
* @since 20.0
661
658
*/
662
- @ Beta
663
659
@ SuppressWarnings ("ShortCircuitBoolean" )
664
660
public static long saturatedAdd (long a , long b ) {
665
661
long naiveSum = a + b ;
@@ -678,7 +674,6 @@ public static long saturatedAdd(long a, long b) {
678
674
*
679
675
* @since 20.0
680
676
*/
681
- @ Beta
682
677
@ SuppressWarnings ("ShortCircuitBoolean" )
683
678
public static long saturatedSubtract (long a , long b ) {
684
679
long naiveDifference = a - b ;
@@ -697,7 +692,6 @@ public static long saturatedSubtract(long a, long b) {
697
692
*
698
693
* @since 20.0
699
694
*/
700
- @ Beta
701
695
@ SuppressWarnings ("ShortCircuitBoolean" )
702
696
public static long saturatedMultiply (long a , long b ) {
703
697
// see checkedMultiply for explanation
@@ -728,7 +722,6 @@ public static long saturatedMultiply(long a, long b) {
728
722
*
729
723
* @since 20.0
730
724
*/
731
- @ Beta
732
725
@ SuppressWarnings ("ShortCircuitBoolean" )
733
726
public static long saturatedPow (long b , int k ) {
734
727
checkNonNegative ("exponent" , k );
@@ -1017,7 +1010,6 @@ public static long mean(long x, long y) {
1017
1010
*/
1018
1011
@ J2ktIncompatible
1019
1012
@ GwtIncompatible // TODO
1020
- @ Beta
1021
1013
public static boolean isPrime (long n ) {
1022
1014
if (n < 2 ) {
1023
1015
checkNonNegative ("n" , n );
0 commit comments