Polish "Use try-with-resources when applicable"
See gh-32610
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user