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


The following commit(s) were added to refs/heads/master by this push:
     new 438765e7 Use method reference
438765e7 is described below

commit 438765e748d3e5b5c737e54f816c1e660e93fd13
Author: Alex Herbert <aherb...@apache.org>
AuthorDate: Fri Apr 25 17:10:20 2025 +0100

    Use method reference
---
 .../geometry/io/euclidean/threed/stl/StlBoundaryReadHandler3DTest.java  | 2 +-
 .../geometry/io/euclidean/threed/stl/StlFacetDefinitionReadersTest.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/commons-geometry-io-euclidean/src/test/java/org/apache/commons/geometry/io/euclidean/threed/stl/StlBoundaryReadHandler3DTest.java
 
b/commons-geometry-io-euclidean/src/test/java/org/apache/commons/geometry/io/euclidean/threed/stl/StlBoundaryReadHandler3DTest.java
index d45ab10e..84754383 100644
--- 
a/commons-geometry-io-euclidean/src/test/java/org/apache/commons/geometry/io/euclidean/threed/stl/StlBoundaryReadHandler3DTest.java
+++ 
b/commons-geometry-io-euclidean/src/test/java/org/apache/commons/geometry/io/euclidean/threed/stl/StlBoundaryReadHandler3DTest.java
@@ -157,7 +157,7 @@ class StlBoundaryReadHandler3DTest {
             Assertions.assertNotNull(reader.readFacet());
             Assertions.assertNotNull(reader.readFacet());
 
-            Assertions.assertThrows(IllegalStateException.class, () -> 
reader.readFacet());
+            Assertions.assertThrows(IllegalStateException.class, 
reader::readFacet);
         }
     }
 
diff --git 
a/commons-geometry-io-euclidean/src/test/java/org/apache/commons/geometry/io/euclidean/threed/stl/StlFacetDefinitionReadersTest.java
 
b/commons-geometry-io-euclidean/src/test/java/org/apache/commons/geometry/io/euclidean/threed/stl/StlFacetDefinitionReadersTest.java
index 35d0bced..6e699c6e 100644
--- 
a/commons-geometry-io-euclidean/src/test/java/org/apache/commons/geometry/io/euclidean/threed/stl/StlFacetDefinitionReadersTest.java
+++ 
b/commons-geometry-io-euclidean/src/test/java/org/apache/commons/geometry/io/euclidean/threed/stl/StlFacetDefinitionReadersTest.java
@@ -123,7 +123,7 @@ class StlFacetDefinitionReadersTest {
 
             Assertions.assertNotNull(reader.readFacet());
             Assertions.assertNotNull(reader.readFacet());
-            Assertions.assertThrows(IllegalStateException.class, () -> 
reader.readFacet());
+            Assertions.assertThrows(IllegalStateException.class, 
reader::readFacet);
         }
     }
 

Reply via email to