Skip to content

Commit 99d2ced

Browse files
java-team-github-botGoogle Java Core Libraries
authored andcommitted
Remove @GwtIncompatible from LongMath.checkedSubtract
RELNOTES=Remove @GwtIncompatible from LongMath.checkedSubtract PiperOrigin-RevId: 684068945
1 parent 49776fd commit 99d2ced

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

android/guava-tests/test/com/google/common/math/LongMathTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,6 @@ public void testCheckedAdd() {
587587
}
588588
}
589589

590-
@GwtIncompatible // TODO
591590
@AndroidIncompatible // slow
592591
public void testCheckedSubtract() {
593592
for (long a : ALL_LONG_CANDIDATES) {

android/guava/src/com/google/common/math/LongMath.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,6 @@ public static long checkedAdd(long a, long b) {
547547
*
548548
* @throws ArithmeticException if {@code a - b} overflows in signed {@code long} arithmetic
549549
*/
550-
@GwtIncompatible // TODO
551550
// Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, ||
552551
@SuppressWarnings("ShortCircuitBoolean")
553552
public static long checkedSubtract(long a, long b) {

guava-tests/test/com/google/common/math/LongMathTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,6 @@ public void testCheckedAdd() {
587587
}
588588
}
589589

590-
@GwtIncompatible // TODO
591590
@AndroidIncompatible // slow
592591
public void testCheckedSubtract() {
593592
for (long a : ALL_LONG_CANDIDATES) {

guava/src/com/google/common/math/LongMath.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,6 @@ public static long checkedAdd(long a, long b) {
547547
*
548548
* @throws ArithmeticException if {@code a - b} overflows in signed {@code long} arithmetic
549549
*/
550-
@GwtIncompatible // TODO
551550
// Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, ||
552551
@SuppressWarnings("ShortCircuitBoolean")
553552
public static long checkedSubtract(long a, long b) {

0 commit comments

Comments
 (0)