15 |
|
|
16 |
|
try { |
17 |
|
cl = Class.forName(args[0]); |
18 |
< |
} catch(ClassNotFoundException e) { |
18 |
> |
} catch (ClassNotFoundException e) { |
19 |
|
fail("Class " + args[0] + " not found."); |
20 |
|
} |
21 |
|
|
92 |
|
|
93 |
|
static Set newSet(Class cl, boolean synch) { |
94 |
|
try { |
95 |
< |
Set s = (Set)cl.newInstance(); |
95 |
> |
Set s = (Set) cl.newInstance(); |
96 |
|
if (synch) |
97 |
|
s = Collections.synchronizedSet(s); |
98 |
|
if (!s.isEmpty()) |
99 |
|
fail("New instance non empty."); |
100 |
|
return s; |
101 |
< |
} catch(Throwable t) { |
101 |
> |
} catch (Throwable t) { |
102 |
|
fail("Can't instantiate " + cl + ": " + t); |
103 |
|
} |
104 |
|
return null; //Shut up compiler. |