Fix ConcurrentModificationException in #673

This commit is contained in:
Rsl1122 2018-08-08 10:59:49 +03:00
parent 91aa730673
commit 94b5d0d393

View File

@ -36,7 +36,6 @@ public class GeoInfoMutator {
if (geoInfo.isEmpty()) { if (geoInfo.isEmpty()) {
return Optional.empty(); return Optional.empty();
} }
geoInfo.sort(new GeoInfoComparator()); return geoInfo.stream().min(new GeoInfoComparator());
return Optional.of(geoInfo.get(0));
} }
} }