# | Line 249 | Line 249 | public class CopyOnWriteArrayList<E> | |
---|---|---|
249 | */ | |
250 | public Object clone() { | |
251 | try { | |
252 | < | return super.clone(); |
252 | > | CopyOnWriteArrayList c = (CopyOnWriteArrayList)(super.clone()); |
253 | > | c.resetLock(); |
254 | > | return c; |
255 | } catch (CloneNotSupportedException e) { | |
256 | // this shouldn't happen, since we are Cloneable | |
257 | throw new InternalError(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |