From aa2c50fae57564990c5a2d7fcd5b0fa99dd05168 Mon Sep 17 00:00:00 2001 From: simonpoole Date: Tue, 15 Mar 2022 12:18:31 +0100 Subject: [PATCH] Rename method to something indicating what it actually does --- src/main/java/dev/osm/mapsplit/MapSplit.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/dev/osm/mapsplit/MapSplit.java b/src/main/java/dev/osm/mapsplit/MapSplit.java index 6f5db76..81cdf82 100644 --- a/src/main/java/dev/osm/mapsplit/MapSplit.java +++ b/src/main/java/dev/osm/mapsplit/MapSplit.java @@ -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 tileList) { - + private void addWayNodesToMap(@NotNull Way way, @NotNull Collection 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); @@ -806,7 +804,7 @@ public void process(EntityContainer ec) { Way w = ((WayContainer) ec).getEntity(); if (relationMemberWayIds.contains(w.getId())) { List tileList = wmap.getAllTiles(w.getId()); - addExtraWayToMap(w, tileList); + addWayNodesToMap(w, tileList); } } }