Polish contribution
See gh-44310
This commit is contained in:
@@ -65,7 +65,7 @@ public class ReactiveWebServerApplicationContext extends GenericReactiveWebAppli
|
||||
try {
|
||||
super.refresh();
|
||||
}
|
||||
catch (RuntimeException refreshEx) {
|
||||
catch (RuntimeException ex) {
|
||||
WebServer webServer = getWebServer();
|
||||
if (webServer != null) {
|
||||
try {
|
||||
@@ -73,10 +73,10 @@ public class ReactiveWebServerApplicationContext extends GenericReactiveWebAppli
|
||||
webServer.destroy();
|
||||
}
|
||||
catch (RuntimeException stopOrDestroyEx) {
|
||||
refreshEx.addSuppressed(stopOrDestroyEx);
|
||||
ex.addSuppressed(stopOrDestroyEx);
|
||||
}
|
||||
}
|
||||
throw refreshEx;
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ public class ServletWebServerApplicationContext extends GenericWebApplicationCon
|
||||
try {
|
||||
super.refresh();
|
||||
}
|
||||
catch (RuntimeException refreshEx) {
|
||||
catch (RuntimeException ex) {
|
||||
try {
|
||||
WebServer webServer = this.webServer;
|
||||
if (webServer != null) {
|
||||
@@ -154,9 +154,9 @@ public class ServletWebServerApplicationContext extends GenericWebApplicationCon
|
||||
}
|
||||
}
|
||||
catch (RuntimeException stopOrDestroyEx) {
|
||||
refreshEx.addSuppressed(stopOrDestroyEx);
|
||||
ex.addSuppressed(stopOrDestroyEx);
|
||||
}
|
||||
throw refreshEx;
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user