Skip to content

Commit

Permalink
Remove @GwtIncompatible from LongMath.checkedSubtract
Browse files Browse the repository at this point in the history
RELNOTES=Remove @GwtIncompatible from LongMath.checkedSubtract
PiperOrigin-RevId: 684068945
  • Loading branch information
java-team-github-bot authored and Google Java Core Libraries committed Oct 9, 2024
1 parent 49776fd commit 99d2ced
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ public void testCheckedAdd() {
}
}

@GwtIncompatible // TODO
@AndroidIncompatible // slow
public void testCheckedSubtract() {
for (long a : ALL_LONG_CANDIDATES) {
Expand Down
1 change: 0 additions & 1 deletion android/guava/src/com/google/common/math/LongMath.java
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ public static long checkedAdd(long a, long b) {
*
* @throws ArithmeticException if {@code a - b} overflows in signed {@code long} arithmetic
*/
@GwtIncompatible // TODO
// Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, ||
@SuppressWarnings("ShortCircuitBoolean")
public static long checkedSubtract(long a, long b) {
Expand Down
1 change: 0 additions & 1 deletion guava-tests/test/com/google/common/math/LongMathTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ public void testCheckedAdd() {
}
}

@GwtIncompatible // TODO
@AndroidIncompatible // slow
public void testCheckedSubtract() {
for (long a : ALL_LONG_CANDIDATES) {
Expand Down
1 change: 0 additions & 1 deletion guava/src/com/google/common/math/LongMath.java
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ public static long checkedAdd(long a, long b) {
*
* @throws ArithmeticException if {@code a - b} overflows in signed {@code long} arithmetic
*/
@GwtIncompatible // TODO
// Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, ||
@SuppressWarnings("ShortCircuitBoolean")
public static long checkedSubtract(long a, long b) {
Expand Down

0 comments on commit 99d2ced

Please sign in to comment.