kopia lustrzana https://github.com/JOSM/MapWithAI
GetDataRunnable: Avoid allocations
Signed-off-by: Taylor Smock <tsmock@fb.com>pull/1/head
rodzic
5a74db8351
commit
ebc1725a10
|
@ -409,7 +409,7 @@ public class GetDataRunnable extends RecursiveTask<DataSet> {
|
|||
}
|
||||
|
||||
private static boolean onlyHasHighwayParents(Node node) {
|
||||
return node.getReferrers().stream().allMatch(prim -> prim.hasKey("highway"));
|
||||
return node.referrers(OsmPrimitive.class).allMatch(prim -> prim.hasKey("highway"));
|
||||
}
|
||||
|
||||
private static boolean basicNodeChecks(Node nearNode, Node node) {
|
||||
|
|
Ładowanie…
Reference in New Issue