[INFRAUTILS-86] Terminally deprecate UncheckedCloseable Created: 05/Oct/21 Updated: 05/Oct/21 Resolved: 05/Oct/21 |
|
| Status: | Resolved |
| Project: | infrautils |
| Component/s: | utils, incl. inject |
| Affects Version/s: | None |
| Fix Version/s: | 2.0.7 |
| Type: | Task | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
UncheckedAutoCloseable narrows AutoCloseable.close() to not throw. There is a widely known duplicate, [Registration|https://www.javadoc.io/doc/org.opendaylight.yangtools/yangtools-docs/latest/org/opendaylight/yangtools/concepts/Registration.html,] which does the same thing. In addition to UncheckedAutoCloseable, it also provides a useful default implementation. |