SearchRoutePolicies: remove use of deprecated Long constructor
@@ -229,7 +229,7 @@ public final class SearchRoutePoliciesAnswerer extends Answerer {
try {
asns =
Arrays.stream(asPathStr.split(" "))
- .mapToLong(Long::new)
+ .mapToLong(Long::valueOf)
.boxed()
.collect(Collectors.toList());
} catch (NumberFormatException nfe) {
