(Thread thread, boolean ignoreInterrupt)
| 477 | } |
| 478 | |
| 479 | private void joinThread(Thread thread, boolean ignoreInterrupt) { |
| 480 | if (thread != null) { |
| 481 | try { |
| 482 | thread.join(); |
| 483 | } catch (InterruptedException e) { |
| 484 | if (!ignoreInterrupt) { |
| 485 | Thread.currentThread().interrupt(); |
| 486 | } |
| 487 | } |
| 488 | } |
| 489 | } |
| 490 | |
| 491 | protected <T extends Closeable> T freeOnExit(T closeable) { |
| 492 | return freeOnExit.register(closeable); |
no test coverage detected