()
| 76 | } |
| 77 | |
| 78 | @Override |
| 79 | protected void after() { |
| 80 | RuntimeException toThrow = null; |
| 81 | while (!toRunAfter.isEmpty()) { |
| 82 | try { |
| 83 | toRunAfter.pop().run(); |
| 84 | } catch (RuntimeException e) { |
| 85 | if (toThrow == null) { |
| 86 | toThrow = e; |
| 87 | } else { |
| 88 | toThrow.addSuppressed(e); |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | if (toThrow != null) { |
| 93 | throw toThrow; |
| 94 | } |
| 95 | } |
| 96 | } |