351 |
|
catch (InterruptedException ie) { |
352 |
|
threadUnexpectedException(); |
353 |
|
} |
354 |
< |
catch(IllegalMonitorStateException success) { |
354 |
> |
catch (IllegalMonitorStateException success) { |
355 |
|
} |
356 |
|
|
357 |
|
} |
361 |
|
Thread.sleep(SHORT_DELAY_MS); |
362 |
|
t.interrupt(); |
363 |
|
t.join(); |
364 |
< |
} catch(Exception e) { |
364 |
> |
} catch (Exception e) { |
365 |
|
unexpectedException(); |
366 |
|
} |
367 |
|
} |
381 |
|
} |
382 |
|
threadShouldThrow(); |
383 |
|
} |
384 |
< |
catch(InterruptedException success) {} |
385 |
< |
catch(IllegalMonitorStateException failure) { |
384 |
> |
catch (InterruptedException success) {} |
385 |
> |
catch (IllegalMonitorStateException failure) { |
386 |
|
threadUnexpectedException(); |
387 |
|
} |
388 |
|
} |
392 |
|
Thread.sleep(SHORT_DELAY_MS); |
393 |
|
t.interrupt(); |
394 |
|
t.join(); |
395 |
< |
} catch(Exception e) { |
395 |
> |
} catch (Exception e) { |
396 |
|
unexpectedException(); |
397 |
|
} |
398 |
|
} |
410 |
|
public void run() { |
411 |
|
try { |
412 |
|
Thread.sleep(MEDIUM_DELAY_MS); |
413 |
< |
} catch(InterruptedException success){} |
413 |
> |
} catch (InterruptedException success){} |
414 |
|
} |
415 |
|
}); |
416 |
|
s.start(); |
417 |
|
tu.timedJoin(s,MEDIUM_DELAY_MS); |
418 |
|
threadShouldThrow(); |
419 |
|
} |
420 |
< |
catch(Exception e) {} |
420 |
> |
catch (Exception e) {} |
421 |
|
} |
422 |
|
}); |
423 |
|
t.start(); |
425 |
|
Thread.sleep(SHORT_DELAY_MS); |
426 |
|
t.interrupt(); |
427 |
|
t.join(); |
428 |
< |
} catch(Exception e) { |
428 |
> |
} catch (Exception e) { |
429 |
|
unexpectedException(); |
430 |
|
} |
431 |
|
} |
443 |
|
tu.sleep(MEDIUM_DELAY_MS); |
444 |
|
threadShouldThrow(); |
445 |
|
} |
446 |
< |
catch(InterruptedException success) {} |
446 |
> |
catch (InterruptedException success) {} |
447 |
|
} |
448 |
|
}); |
449 |
|
t.start(); |
451 |
|
Thread.sleep(SHORT_DELAY_MS); |
452 |
|
t.interrupt(); |
453 |
|
t.join(); |
454 |
< |
} catch(Exception e) { |
454 |
> |
} catch (Exception e) { |
455 |
|
unexpectedException(); |
456 |
|
} |
457 |
|
} |
473 |
|
TimeUnit r = (TimeUnit)in.readObject(); |
474 |
|
|
475 |
|
assertEquals(q.toString(), r.toString()); |
476 |
< |
} catch(Exception e){ |
476 |
> |
} catch (Exception e){ |
477 |
|
e.printStackTrace(); |
478 |
|
unexpectedException(); |
479 |
|
} |