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 c5c6edcaaf0a4634e4c6e9a2003e44ca5b6f99a4 Author: Alex Herbert <aherb...@apache.org> AuthorDate: Fri Apr 25 15:35:33 2025 +0100 sonar fix: remove unthrown exception from test method signature --- .../commons/geometry/euclidean/threed/RegionBSPTree3DTest.java | 7 +++---- .../euclidean/threed/stl/BinaryStlFacetDefinitionReaderTest.java | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/threed/RegionBSPTree3DTest.java b/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/threed/RegionBSPTree3DTest.java index 1fd2c514..1c6554c6 100644 --- a/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/threed/RegionBSPTree3DTest.java +++ b/commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/threed/RegionBSPTree3DTest.java @@ -16,7 +16,6 @@ */ package org.apache.commons.geometry.euclidean.threed; -import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; @@ -1329,7 +1328,7 @@ class RegionBSPTree3DTest { } @Test - void testBoolean_union() throws IOException { + void testBoolean_union() { // arrange final double tolerance = 0.05; final double size = 1.0; @@ -1409,7 +1408,7 @@ class RegionBSPTree3DTest { } @Test - void testBoolean_intersection() throws IOException { + void testBoolean_intersection() { // arrange final double tolerance = 0.05; final double size = 1.0; @@ -1487,7 +1486,7 @@ class RegionBSPTree3DTest { } @Test - void testBoolean_xor_twoCubes() throws IOException { + void testBoolean_xor_twoCubes() { // arrange final double size = 1.0; final RegionBSPTree3D box1 = createRect(Vector3D.ZERO, Vector3D.of(size, size, size)); diff --git a/commons-geometry-io-euclidean/src/test/java/org/apache/commons/geometry/io/euclidean/threed/stl/BinaryStlFacetDefinitionReaderTest.java b/commons-geometry-io-euclidean/src/test/java/org/apache/commons/geometry/io/euclidean/threed/stl/BinaryStlFacetDefinitionReaderTest.java index 1e0f7667..30233e3f 100644 --- a/commons-geometry-io-euclidean/src/test/java/org/apache/commons/geometry/io/euclidean/threed/stl/BinaryStlFacetDefinitionReaderTest.java +++ b/commons-geometry-io-euclidean/src/test/java/org/apache/commons/geometry/io/euclidean/threed/stl/BinaryStlFacetDefinitionReaderTest.java @@ -140,7 +140,7 @@ class BinaryStlFacetDefinitionReaderTest { } @Test - void testGetHeader_ioException() throws IOException { + void testGetHeader_ioException() { // arrange final InputStream failIn = new InputStream() { @Override