diff --git a/build.gradle b/build.gradle index 270116a8..b239fac3 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ repositories { } ext { - errorproneVersion = '2.32.0' + errorproneVersion = '2.33.0' isJava17orHigher = JavaVersion.current() >= JavaVersion.VERSION_17 isJava21orHigher = JavaVersion.current() >= JavaVersion.VERSION_21 } diff --git a/src/test/java/org/plumelib/util/ArraysPlumeTest.java b/src/test/java/org/plumelib/util/ArraysPlumeTest.java index 4d6a9693..2ca3be13 100644 --- a/src/test/java/org/plumelib/util/ArraysPlumeTest.java +++ b/src/test/java/org/plumelib/util/ArraysPlumeTest.java @@ -59,11 +59,13 @@ public void testMinAndMax() { ArraysPlume.minAndMax(new int[] {}); throw new Error("Didn't throw ArrayIndexOutOfBoundsException"); } catch (ArrayIndexOutOfBoundsException e) { + // This is the expected behavior, so do nothing. } try { ArraysPlume.minAndMax(new long[] {}); throw new Error("Didn't throw ArrayIndexOutOfBoundsException"); } catch (ArrayIndexOutOfBoundsException e) { + // This is the expected behavior, so do nothing. } // public static int elementRange(int[] a) diff --git a/src/test/java/org/plumelib/util/MathPlumeTest.java b/src/test/java/org/plumelib/util/MathPlumeTest.java index 7fc57d47..ef4cea42 100644 --- a/src/test/java/org/plumelib/util/MathPlumeTest.java +++ b/src/test/java/org/plumelib/util/MathPlumeTest.java @@ -126,6 +126,7 @@ public void test_pow() { MathPlume.pow(3, -3); throw new Error("Didn't throw ArithmeticException"); } catch (ArithmeticException e) { + // This is the expected behavior, so do nothing. } }