Skip to content

Commit

Permalink
Rename function newArea as addArea
Browse files Browse the repository at this point in the history
  • Loading branch information
vesameskanen committed Nov 8, 2024
1 parent 3d754a5 commit e6d383b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ private void processSingleWayAreas() {
}
}
try {
newArea(new Area(way, List.of(way), Collections.emptyList(), nodesById));
addArea(new Area(way, List.of(way), Collections.emptyList(), nodesById));
} catch (Area.AreaConstructionException | Ring.RingConstructionException e) {
// this area cannot be constructed, but we already have all the
// necessary nodes to construct it. So, something must be wrong with
Expand Down Expand Up @@ -751,7 +751,7 @@ private void processMultipolygonRelations() {
}
processedAreas.add(relation);
try {
newArea(new Area(relation, outerWays, innerWays, nodesById));
addArea(new Area(relation, outerWays, innerWays, nodesById));
} catch (Area.AreaConstructionException | Ring.RingConstructionException e) {
issueStore.add(new InvalidOsmGeometry(relation));
continue;
Expand Down Expand Up @@ -786,7 +786,7 @@ private void processMultipolygonRelations() {
/**
* Handler for a new Area (single way area or multipolygon relations)
*/
private void newArea(Area area) {
private void addArea(Area area) {
StreetTraversalPermission permissions = area.parent
.getOsmProvider()
.getWayPropertySet()
Expand Down

0 comments on commit e6d383b

Please sign in to comment.