Remove Guava @Beta API warning suppressions

These are no longer needed now we've updated to 32.1.3 in 7a10435633

PiperOrigin-RevId: 579149808
This commit is contained in:
ibaker 2023-11-03 05:17:28 -07:00 committed by Copybara-Service
parent 21a9bfe440
commit 0a016b59f7
2 changed files with 0 additions and 10 deletions

View file

@ -1688,8 +1688,6 @@ public final class Util {
// LongMath.saturatedMultiply is @Beta in the version of Guava we currently depend on (31.1)
// but it is no longer @Beta from 32.0.0. This suppression is therefore safe because there's
// no version of Guava after 31.1 that doesn't contain this symbol.
// TODO(b/290045069): Remove this suppression when we depend on Guava 32+.
@SuppressWarnings("UnstableApiUsage")
@UnstableApi
public static long scaleLargeValue(
long value, long multiplier, long divisor, RoundingMode roundingMode) {
@ -1725,8 +1723,6 @@ public final class Util {
// LongMath.saturatedMultiply is @Beta in the version of Guava we currently depend on (31.1)
// but it is no longer @Beta from 32.0.0. This suppression is therefore safe because there's
// no version of Guava after 31.1 that doesn't contain this symbol.
// TODO(b/290045069): Remove this suppression when we depend on Guava 32+.
@SuppressWarnings("UnstableApiUsage")
@UnstableApi
public static long[] scaleLargeValues(
List<Long> values, long multiplier, long divisor, RoundingMode roundingMode) {
@ -1829,8 +1825,6 @@ public final class Util {
// LongMath.saturatedMultiply is @Beta in the version of Guava we currently depend on (31.1)
// but it is no longer @Beta from 32.0.0. This suppression is therefore safe because there's
// no version of Guava after 31.1 that doesn't contain this symbol.
// TODO(b/290045069): Remove this suppression when we depend on Guava 32+.
@SuppressWarnings("UnstableApiUsage")
private static long scaleLargeValueFallback(
long value, long multiplier, long divisor, RoundingMode roundingMode) {
long numerator = LongMath.saturatedMultiply(value, multiplier);

View file

@ -272,8 +272,6 @@ public class UtilScaleLargeValueParameterizedTest {
* floating-point branch (which will cause this test to fail because passing
* RoundingMode.UNNECESSARY won't be allowed).
*/
// TODO(b/290045069): Remove this suppression when we depend on Guava 32+.
@SuppressWarnings("UnstableApiUsage")
@Test
public void cancelsRatherThanFallThroughToFloatingPoint() {
long value = 24960;
@ -288,8 +286,6 @@ public class UtilScaleLargeValueParameterizedTest {
assertThat(result).isEqualTo(520000);
}
// TODO(b/290045069): Remove this suppression when we depend on Guava 32+.
@SuppressWarnings("UnstableApiUsage")
@Test
public void numeratorOverflowsAndCantBeCancelled() {
// Use three Mersenne primes so nothing can cancel, and the numerator will (just) overflow 64