Skip to content
Permalink
Browse files
replacing lambda with method reference
  • Loading branch information
darkma773r committed Jul 24, 2021
1 parent ec20f5e commit cfe898c5e5265b60f0c281f6bdae6a63ff4ddbf6
Showing 1 changed file with 2 additions and 2 deletions.
@@ -69,7 +69,7 @@ public RegionBSPTree2S copy() {
/** {@inheritDoc} */
@Override
public Iterable<GreatArc> boundaries() {
return createBoundaryIterable(b -> (GreatArc) b);
return createBoundaryIterable(GreatArc.class::cast);
}

/** {@inheritDoc} */
@@ -81,7 +81,7 @@ public Stream<GreatArc> boundaryStream() {
/** {@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

0 comments on commit cfe898c

Please sign in to comment.