You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2025/09/24 13:15:50 UTC
(commons-geometry) 04/34: pmd fix: use package level for shared internal methods
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 6feebcb4304bdfc0c5c2d912527d206e6c2a92b1
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Tue Sep 23 16:48:15 2025 +0100
pmd fix: use package level for shared internal methods
---
.../commons/geometry/core/partitioning/bsp/AbstractRegionBSPTree.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/bsp/AbstractRegionBSPTree.java b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/bsp/AbstractRegionBSPTree.java
index 058a0541..d61c4155 100644
--- a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/bsp/AbstractRegionBSPTree.java
+++ b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/bsp/AbstractRegionBSPTree.java
@@ -50,7 +50,7 @@ public abstract class AbstractRegionBSPTree<
extends AbstractBSPTree<P, N> implements HyperplaneBoundedRegion<P> {
/** The default {@link RegionCutRule}. */
- private static final RegionCutRule DEFAULT_REGION_CUT_RULE = RegionCutRule.MINUS_INSIDE;
+ static final RegionCutRule DEFAULT_REGION_CUT_RULE = RegionCutRule.MINUS_INSIDE;
/** Value used to indicate an unknown size. */
private static final double UNKNOWN_SIZE = -1.0;
@@ -423,7 +423,7 @@ public abstract class AbstractRegionBSPTree<
/** Recursively switch all inside nodes to outside nodes and vice versa.
* @param node the node at the root of the subtree to switch
*/
- private void complementRecursive(final AbstractRegionNode<P, N> node) {
+ void complementRecursive(final AbstractRegionNode<P, N> node) {
if (node != null) {
final RegionLocation newLoc = (node.getLocation() == RegionLocation.INSIDE) ?
RegionLocation.OUTSIDE :