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:16:18 UTC
(commons-geometry) 32/34: pmd fix: add annotation
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 b4645e013aa73929d56448b5ef343e83b41c12da
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Wed Sep 24 14:05:21 2025 +0100
pmd fix: add annotation
---
.../java/org/apache/commons/geometry/core/partitioning/Splittable.java | 1 +
.../org/apache/commons/geometry/spherical/twod/BoundarySource2S.java | 1 +
2 files changed, 2 insertions(+)
diff --git a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/Splittable.java b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/Splittable.java
index a2670a66..f6c1501f 100644
--- a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/Splittable.java
+++ b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/Splittable.java
@@ -22,6 +22,7 @@ import org.apache.commons.geometry.core.Point;
* @param <P> Point implementation type
* @param <S> Split type
*/
+@FunctionalInterface
public interface Splittable<P extends Point<P>, S extends Splittable<P, S>> {
/** Split this instance with the given hyperplane.
diff --git a/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/BoundarySource2S.java b/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/BoundarySource2S.java
index 90045359..8eea3688 100644
--- a/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/BoundarySource2S.java
+++ b/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/BoundarySource2S.java
@@ -26,6 +26,7 @@ import org.apache.commons.geometry.core.partitioning.BoundarySource;
/** Extension of the {@link BoundarySource} interface for spherical 2D
* space.
*/
+@FunctionalInterface
public interface BoundarySource2S extends BoundarySource<GreatArc> {
/** Return a {@link BoundaryList2S} containing the boundaries in this instance.