@ -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,20 +72,41 @@ public class PropertySourcesPropertyValues implements PropertyValues {
@@ -72,20 +72,41 @@ public class PropertySourcesPropertyValues implements PropertyValues {
@ -98,37 +119,18 @@ public class PropertySourcesPropertyValues implements PropertyValues {
@@ -98,37 +119,18 @@ public class PropertySourcesPropertyValues implements PropertyValues {
// Probably could not resolve placeholders, ignore it here
@ -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){
}
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,12 +153,16 @@ public class TomcatEmbeddedServletContainer implements EmbeddedServletContainer
@@ -154,12 +153,16 @@ public class TomcatEmbeddedServletContainer implements EmbeddedServletContainer
}
// Ensure process isn't left running if it actually failed to start