Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Jan 12, 2024
1 parent b848f69 commit 142d96a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private static class Ring {
private final Polygon geom;
private final double area;
private Ring containedBy = null;
// use linked hash set to ensure stable output
// use linked hash set to ensure same input always produces same output
private final Set<Ring> holes = new LinkedHashSet<>();

private Ring(Polygon geom) {
Expand Down Expand Up @@ -226,7 +226,7 @@ private static void addPolygonRings(List<Ring> polygons, Geometry geom) {
}

private static Set<Ring> groupParentChildShells(List<Ring> polygons) {
// use linked hash sate to ensure the same input always produces the same output
// use linked hash set to ensure the same input always produces the same output
Set<Ring> shells = new LinkedHashSet<>();
int numPolygons = polygons.size();
if (numPolygons == 0) {
Expand Down

0 comments on commit 142d96a

Please sign in to comment.