forked from jasder/antlr
Fix unchecked warnings in clone()
This commit is contained in:
parent
e400f5b1a1
commit
1e3e092326
|
@ -114,8 +114,9 @@ public class OrderedHashSet<T> extends LinkedHashSet<T> {
|
|||
|
||||
@Override
|
||||
public Object clone() {
|
||||
@SuppressWarnings("unchecked")
|
||||
OrderedHashSet<T> dup = (OrderedHashSet<T>)super.clone();
|
||||
dup.elements = (ArrayList<T>)this.elements.clone();
|
||||
dup.elements = new ArrayList<T>(this.elements);
|
||||
return dup;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue