We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 951f051 commit 65b4f61Copy full SHA for 65b4f61
spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RunMojo.java
@@ -120,16 +120,12 @@ private boolean hasDevtools() {
120
return this.hasDevtools;
121
}
122
123
+ @SuppressWarnings("resource")
124
private boolean checkForDevtools() {
125
try {
126
URL[] urls = getClassPathUrls();
127
URLClassLoader classLoader = new URLClassLoader(urls);
- try {
128
- return (classLoader.findResource(RESTARTER_CLASS_LOCATION) != null);
129
- }
130
- finally {
131
- classLoader.close();
132
+ return (classLoader.findResource(RESTARTER_CLASS_LOCATION) != null);
133
134
catch (Exception ex) {
135
return false;
0 commit comments