# | Line 254 | Line 254 | public class ListBash { | |
---|---|---|
254 | if (!clone.containsAll(s)) | |
255 | fail("Copy does not contain list."); | |
256 | ||
257 | < | return (List<Integer>)clone; |
257 | > | return (List<Integer>) clone; |
258 | } | |
259 | ||
260 | static List<Integer> newList(Class cl, boolean synch) { | |
261 | try { | |
262 | < | List<Integer> s = (List<Integer>)cl.newInstance(); |
262 | > | List<Integer> s = (List<Integer>) cl.newInstance(); |
263 | if (synch) | |
264 | s = Collections.synchronizedList(s); | |
265 | if (!s.isEmpty()) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |