Commit 8e040c7
committed
Make Client AutoCloseable and close() idempotent
- Make AutoClosable so it can be used in try-with-resources
- Removed null check for serverConnection since it cannot be null
- Do not shutdown serverConnection or close JAX-RS client if this client
is already closed.
Signed-off-by: Tony Germano <[email protected]>1 parent 05aacfb commit 8e040c7
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
| |||
312 | 316 | | |
313 | 317 | | |
314 | 318 | | |
| 319 | + | |
315 | 320 | | |
316 | | - | |
317 | | - | |
| 321 | + | |
318 | 322 | | |
319 | 323 | | |
320 | 324 | | |
| |||
2675 | 2679 | | |
2676 | 2680 | | |
2677 | 2681 | | |
2678 | | - | |
| 2682 | + | |
0 commit comments