Replace clone() with copy constructor

This commit is contained in:
Alexander Sytnyk 2017-07-28 11:21:24 +03:00
parent 2624ecaef0
commit 398d1b4f70

View file

@ -585,7 +585,7 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable<PoiUIFilter>
acceptedTypes.put(category, null); acceptedTypes.put(category, null);
} }
} else { } else {
acceptedTypes.put(category, (LinkedHashSet<String>) types.get(category).clone()); acceptedTypes.put(category, new LinkedHashSet<>(types.get(category)));
} }
} }
} }