Polish "Use try-with-resources when applicable"

See gh-32610
This commit is contained in:
Stéphane Nicoll
2024-04-10 09:49:35 +02:00
parent 82b51479d5
commit 330dcf15bc

View File

@@ -74,12 +74,9 @@ public abstract class JmsUtils {
if (con != null) {
try {
if (stop) {
try {
try (con) {
con.stop();
}
finally {
con.close();
}
}
else {
con.close();