78 |
|
if (child != null) { // Wait for child (if any) |
79 |
|
try { |
80 |
|
child.join(); |
81 |
< |
} catch(InterruptedException e) { |
82 |
< |
threadUnexpectedException(); |
81 |
> |
} catch (InterruptedException e) { |
82 |
> |
threadUnexpectedException(e); |
83 |
|
} |
84 |
|
} |
85 |
|
} |
95 |
|
try { |
96 |
|
progenitor.start(); |
97 |
|
progenitor.join(); |
98 |
< |
for(int i = 0; i < threadCount; i++) { |
98 |
> |
for (int i = 0; i < threadCount; i++) { |
99 |
|
assertEquals(i, x[i]); |
100 |
|
} |
101 |
< |
} catch(InterruptedException e) { |
102 |
< |
unexpectedException(); |
101 |
> |
} catch (InterruptedException e) { |
102 |
> |
unexpectedException(e); |
103 |
|
} |
104 |
|
} |
105 |
|
} |
106 |
– |
|