Commit f8c14fd
committed
Context: do not let close() throw Exception
The dispose() method does not throw exceptions, and we do not need to throw
one when auto-closing. This prevents the compilation error:
Unhandled exception type Exception thrown by automatic close() invocation on context
which occurs with code of the form:
try (Context context = new Context()) {
...
}1 parent 582bafe commit f8c14fd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| |||
0 commit comments