Replace clone() with copy constructor
This commit is contained in:
parent
2624ecaef0
commit
398d1b4f70
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue