Polish
This commit is contained in:
@@ -60,8 +60,8 @@ public class WebApplicationInitializersConfiguration extends AbstractConfigurati
|
||||
initializer.onStartup(sce.getServletContext());
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
catch (Exception ex) {
|
||||
throw new RuntimeException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -173,14 +173,16 @@ public class LaunchedURLClassLoader extends URLClassLoader {
|
||||
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
catch (IOException ex) {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}, AccessController.getContext());
|
||||
}
|
||||
catch (java.security.PrivilegedActionException pae) {
|
||||
catch (java.security.PrivilegedActionException ex) {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -308,7 +308,7 @@ public class PropertiesLauncher extends Launcher {
|
||||
this.logger.info("Main class from home directory manifest: " + mainClass);
|
||||
return mainClass;
|
||||
}
|
||||
catch (IllegalStateException e) {
|
||||
catch (IllegalStateException ex) {
|
||||
// Otherwise try the parent archive
|
||||
String mainClass = createArchive().getMainClass();
|
||||
this.logger.info("Main class from archive manifest: " + mainClass);
|
||||
|
||||
@@ -65,7 +65,7 @@ public abstract class Archive {
|
||||
try {
|
||||
return getUrl().toString();
|
||||
}
|
||||
catch (Exception e) {
|
||||
catch (Exception ex) {
|
||||
return "archive";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ import org.springframework.boot.loader.tools.MainClassFinder;
|
||||
* @author Phillip Webb
|
||||
*/
|
||||
@Mojo(name = "run", requiresProject = true, defaultPhase = LifecyclePhase.VALIDATE, requiresDependencyResolution = ResolutionScope.TEST)
|
||||
@Execute(phase=LifecyclePhase.TEST_COMPILE)
|
||||
@Execute(phase = LifecyclePhase.TEST_COMPILE)
|
||||
public class RunMojo extends AbstractMojo {
|
||||
|
||||
/**
|
||||
@@ -179,7 +179,7 @@ public class RunMojo extends AbstractMojo {
|
||||
hasNonDaemonThreads = true;
|
||||
thread.join();
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
catch (InterruptedException ex) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
@@ -249,8 +249,8 @@ public class RunMojo extends AbstractMojo {
|
||||
+ "main method with appropriate signature.", ex);
|
||||
thread.getThreadGroup().uncaughtException(thread, wrappedEx);
|
||||
}
|
||||
catch (Exception e) {
|
||||
thread.getThreadGroup().uncaughtException(thread, e);
|
||||
catch (Exception ex) {
|
||||
thread.getThreadGroup().uncaughtException(thread, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user