# | Line 92 | Line 92 | public class SetBash { | |
---|---|---|
92 | ||
93 | static Set newSet(Class<?> cl, boolean synch) { | |
94 | try { | |
95 | < | Set s = (Set) cl.newInstance(); |
95 | > | Set s = (Set) cl.getConstructor().newInstance(); |
96 | if (synch) | |
97 | s = Collections.synchronizedSet(s); | |
98 | if (!s.isEmpty()) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |