This is an automated email from the ASF dual-hosted git repository.

mattjuntunen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-geometry.git

commit cfe898c5e5265b60f0c281f6bdae6a63ff4ddbf6
Author: Matt Juntunen <[email protected]>
AuthorDate: Sat Jul 24 07:12:19 2021 -0400

    replacing lambda with method reference
---
 .../org/apache/commons/geometry/spherical/twod/RegionBSPTree2S.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/RegionBSPTree2S.java
 
b/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/RegionBSPTree2S.java
index 026cd9f..df56661 100644
--- 
a/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/RegionBSPTree2S.java
+++ 
b/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/RegionBSPTree2S.java
@@ -69,7 +69,7 @@ public class RegionBSPTree2S extends 
AbstractRegionBSPTree<Point2S, RegionBSPTre
     /** {@inheritDoc} */
     @Override
     public Iterable<GreatArc> boundaries() {
-        return createBoundaryIterable(b -> (GreatArc) b);
+        return createBoundaryIterable(GreatArc.class::cast);
     }
 
     /** {@inheritDoc} */
@@ -81,7 +81,7 @@ public class RegionBSPTree2S extends 
AbstractRegionBSPTree<Point2S, RegionBSPTre
     /** {@inheritDoc} */
     @Override
     public List<GreatArc> getBoundaries() {
-        return createBoundaryList(b -> (GreatArc) b);
+        return createBoundaryList(GreatArc.class::cast);
     }
 
     /** Get the boundary of the region as a list of connected great arc paths. 
The

Reply via email to