mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 04:09:04 +00:00
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