mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish
This commit is contained in:
parent
951f051df9
commit
65b4f61a35
@ -120,16 +120,12 @@ public class RunMojo extends AbstractRunMojo {
|
||||
return this.hasDevtools;
|
||||
}
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
private boolean checkForDevtools() {
|
||||
try {
|
||||
URL[] urls = getClassPathUrls();
|
||||
URLClassLoader classLoader = new URLClassLoader(urls);
|
||||
try {
|
||||
return (classLoader.findResource(RESTARTER_CLASS_LOCATION) != null);
|
||||
}
|
||||
finally {
|
||||
classLoader.close();
|
||||
}
|
||||
return (classLoader.findResource(RESTARTER_CLASS_LOCATION) != null);
|
||||
}
|
||||
catch (Exception ex) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user