Skip to content

Commit

Permalink
Rename method to something indicating what it actually does
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Mar 15, 2022
1 parent c1b7ae1 commit aa2c50f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/dev/osm/mapsplit/MapSplit.java
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,8 @@ private void addWayToMap(@NotNull Way way) {
* @param way the Way we are processing
* @param tileList the List of tiles, encoded with {@link TileCoord}
*/
private void addExtraWayToMap(@NotNull Way way, @NotNull Collection<Integer> tileList) {

private void addWayNodesToMap(@NotNull Way way, @NotNull Collection<Integer> tileList) {
for (WayNode wayNode : way.getWayNodes()) {

// update map so that the node knows about any additional
// tile it has to be stored in
nmap.updateInt(wayNode.getNodeId(), tileList);
Expand Down Expand Up @@ -806,7 +804,7 @@ public void process(EntityContainer ec) {
Way w = ((WayContainer) ec).getEntity();
if (relationMemberWayIds.contains(w.getId())) {
List<Integer> tileList = wmap.getAllTiles(w.getId());
addExtraWayToMap(w, tileList);
addWayNodesToMap(w, tileList);
}
}
}
Expand Down

0 comments on commit aa2c50f

Please sign in to comment.