@ -93,10 +93,8 @@ public class HttpMessageConverters implements Iterable<HttpMessageConverter<?>>
@@ -93,10 +93,8 @@ public class HttpMessageConverters implements Iterable<HttpMessageConverter<?>>
@ -2004,7 +2004,6 @@ the actual port that was allocated for the duration of the tests.
@@ -2004,7 +2004,6 @@ the actual port that was allocated for the duration of the tests.
@ -72,65 +72,67 @@ public class PropertySourcesPropertyValues implements PropertyValues {
@@ -72,65 +72,67 @@ public class PropertySourcesPropertyValues implements PropertyValues {
@ -141,9 +143,24 @@ public class PropertySourcesPropertyValues implements PropertyValues {
@@ -141,9 +143,24 @@ public class PropertySourcesPropertyValues implements PropertyValues {
.get(composite);
returncollection;
}
catch(Exceptione){
catch(Exceptionex){
thrownewIllegalStateException(
"Cannot extract property sources from composite",e);
"Cannot extract property sources from composite",ex);
@ -76,17 +76,21 @@ public class JettyEmbeddedServletContainer implements EmbeddedServletContainer {
@@ -76,17 +76,21 @@ public class JettyEmbeddedServletContainer implements EmbeddedServletContainer {
this.server.start();
}
catch(Exceptionex){
try{
// Ensure process isn't left running
this.server.stop();
}
catch(Exceptione){
}
// Ensure process isn't left running
stopSilently();
thrownewEmbeddedServletContainerException(
"Unable to start embedded Jetty servlet container",ex);
@ -95,7 +95,6 @@ public class TomcatEmbeddedServletContainer implements EmbeddedServletContainer
@@ -95,7 +95,6 @@ public class TomcatEmbeddedServletContainer implements EmbeddedServletContainer
this.tomcat.stop();
thrownewIllegalStateException("Tomcat connector in failed state");
}
}
catch(Exceptionex){
thrownewEmbeddedServletContainerException(
@ -154,15 +153,19 @@ public class TomcatEmbeddedServletContainer implements EmbeddedServletContainer
@@ -154,15 +153,19 @@ public class TomcatEmbeddedServletContainer implements EmbeddedServletContainer
}
// Ensure process isn't left running if it actually failed to start