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:52 UTC

(commons-geometry) 06/34: pmd fix: use final

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 874f0904ca107d55ee167d5bbcf422f9b5639a5a
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Tue Sep 23 16:53:09 2025 +0100

    pmd fix: use final
---
 .../org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java
index c067a817..aa03a460 100644
--- a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java
+++ b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java
@@ -221,7 +221,7 @@ public final class ConvexHull2D implements ConvexHull<Vector2D> {
          *      the given set of input points
          */
         public ConvexHull2D build() {
-            Collection<Vector2D> hullVertices;
+            final Collection<Vector2D> hullVertices;
             if (candidates.size() < 2) {
                 hullVertices = candidates;
             } else {