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 c863a1649e51abdc5d819c6d6ea0b1c175d94d29 Author: Alex Herbert <[email protected]> AuthorDate: Mon Sep 22 14:33:33 2025 +0100 pmd fix: use package level for shared internal methods --- .../org/apache/commons/geometry/euclidean/oned/RegionBSPTree1D.java | 4 ++-- .../java/org/apache/commons/geometry/euclidean/oned/Vector1D.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/RegionBSPTree1D.java b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/RegionBSPTree1D.java index 43f7a7bc..fa44f514 100644 --- a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/RegionBSPTree1D.java +++ b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/RegionBSPTree1D.java @@ -350,7 +350,7 @@ public final class RegionBSPTree1D extends AbstractRegionBSPTree<Vector1D, Regio /** Simple constructor. * @param tree the owning tree instance */ - private RegionNode1D(final AbstractBSPTree<Vector1D, RegionNode1D> tree) { + RegionNode1D(final AbstractBSPTree<Vector1D, RegionNode1D> tree) { super(tree); } @@ -371,7 +371,7 @@ public final class RegionBSPTree1D extends AbstractRegionBSPTree<Vector1D, Regio * @param visitor the object that will receive the min and max boundaries for the node's * convex region */ - private void visitNodeInterval(final BiConsumer<? super OrientedPoint, ? super OrientedPoint> visitor) { + void visitNodeInterval(final BiConsumer<? super OrientedPoint, ? super OrientedPoint> visitor) { OrientedPoint min = null; OrientedPoint max = null; diff --git a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/Vector1D.java b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/Vector1D.java index 073c847a..be4e1066 100644 --- a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/Vector1D.java +++ b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/Vector1D.java @@ -403,7 +403,7 @@ public class Vector1D extends EuclideanVector<Vector1D> { * is false * @throws IllegalArgumentException if the computed norm is zero, NaN, or infinite */ - private static Unit tryCreateNormalized(final double x, final boolean throwOnFailure) { + static Unit tryCreateNormalized(final double x, final boolean throwOnFailure) { final double norm = Vectors.norm(x); if (Vectors.isRealNonZero(norm)) {
