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)