Fix warning r3.7

This commit is contained in:
Victor Shcherb 2020-05-20 18:04:53 +02:00
parent ac5a345455
commit b73df007de

View file

@ -57,8 +57,11 @@ public class TransportStopsRouteReader {
if (rrs != null && !multifileStop.isDeleted()) { if (rrs != null && !multifileStop.isDeleted()) {
for (int rr : rrs) { for (int rr : rrs) {
TransportRoute route = routesToLoad.get(rr); TransportRoute route = routesToLoad.get(rr);
if (route == null && routesToLoad.containsKey(rr)) { if (route == null) {
System.err.println(String.format("Something went wrong by loading combined route %d for stop %s", rr, stop)); if (routesToLoad.containsKey(rr)) {
System.err.println(String.format(
"Something went wrong by loading combined route %d for stop %s", rr, stop));
}
} else { } else {
TransportRoute combinedRoute = getCombinedRoute(route); TransportRoute combinedRoute = getCombinedRoute(route);
if (multifileStop == stop || (!multifileStop.hasRoute(combinedRoute.getId()) if (multifileStop == stop || (!multifileStop.hasRoute(combinedRoute.getId())