1 |
+ |
/* |
2 |
+ |
* Written by Doug Lea and Josh Bloch with assistance from members of |
3 |
+ |
* JCP JSR-166 Expert Group and released to the public domain, as |
4 |
+ |
* explained at http://creativecommons.org/licenses/publicdomain |
5 |
+ |
*/ |
6 |
|
import java.util.*; |
7 |
|
|
8 |
|
public class SetBash { |
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 |
|
|
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. |