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 3eeb06c2e098b1d742b0746e70829636f123b736
Author: Alex Herbert <aherb...@apache.org>
AuthorDate: Fri Apr 25 13:32:22 2025 +0100

    sonar fix: Remove useless parentheses
---
 .../apache/commons/geometry/spherical/twod/RegionBSPTree2STest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/commons-geometry-spherical/src/test/java/org/apache/commons/geometry/spherical/twod/RegionBSPTree2STest.java
 
b/commons-geometry-spherical/src/test/java/org/apache/commons/geometry/spherical/twod/RegionBSPTree2STest.java
index 01c07fbf..0436bb30 100644
--- 
a/commons-geometry-spherical/src/test/java/org/apache/commons/geometry/spherical/twod/RegionBSPTree2STest.java
+++ 
b/commons-geometry-spherical/src/test/java/org/apache/commons/geometry/spherical/twod/RegionBSPTree2STest.java
@@ -642,8 +642,8 @@ class RegionBSPTree2STest {
         // assert
         // compute the area, adjusting the first computation for the fact that 
the triangles comprising the
         // outer diamond have lengths greater than pi/2
-        final double nonComplementedArea = 4 * ((Math.PI - 
rightTriangleArea(outerRadius, outerRadius) -
-                rightTriangleArea(midRadius, midRadius) + 
rightTriangleArea(innerRadius, innerRadius)));
+        final double nonComplementedArea = 4 * (Math.PI - 
rightTriangleArea(outerRadius, outerRadius) -
+                rightTriangleArea(midRadius, midRadius) + 
rightTriangleArea(innerRadius, innerRadius));
         final double area = (4 * Math.PI) - nonComplementedArea;
         Assertions.assertEquals(area, tree.getSize(), TEST_EPS);
 

Reply via email to