This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-geometry.git
commit b176f512e0240ac4143bdc290e5e9d2f5c1878d1 Author: Alex Herbert <aherb...@apache.org> AuthorDate: Fri Apr 25 13:09:41 2025 +0100 Use method reference --- .../commons/geometry/euclidean/twod/hull/ConvexHullBuilderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHullBuilderTest.java b/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHullBuilderTest.java index eb34ed14..016c417f 100644 --- a/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHullBuilderTest.java +++ b/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHullBuilderTest.java @@ -74,7 +74,7 @@ class ConvexHullBuilderTest { // act/assert ConvexHull2D.Builder builder = new ConvexHull2D.Builder(true, Precision.doubleEquivalenceOfEpsilon(1)); builder.append(points); - Assertions.assertThrows(IllegalStateException.class, () -> builder.build()); + Assertions.assertThrows(IllegalStateException.class, builder::build); } @Test