# | Line 257 | Line 257 | public class ListBash { | |
---|---|---|
257 | ||
258 | static List<Integer> newList(Class<?> cl, boolean synch) { | |
259 | try { | |
260 | < | List<Integer> s = (List<Integer>) cl.newInstance(); |
260 | > | List<Integer> s = (List<Integer>) cl.getConstructor().newInstance(); |
261 | if (synch) | |
262 | s = Collections.synchronizedList(s); | |
263 | if (!s.isEmpty()) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |