Commit bc4a11dd authored by Andy Wilkinson's avatar Andy Wilkinson

Make argument ordering consistent across web server initialized events

parent 328bbaf1
......@@ -143,7 +143,7 @@ public class ServletWebServerApplicationContext extends GenericWebApplicationCon
super.finishRefresh();
WebServer webServer = startWebServer();
if (webServer != null) {
publishEvent(new ServletWebServerInitializedEvent(this, webServer));
publishEvent(new ServletWebServerInitializedEvent(webServer, this));
}
}
......
......@@ -37,7 +37,7 @@ public class ServletWebServerInitializedEvent extends WebServerInitializedEvent
private final ServletWebServerApplicationContext applicationContext;
public ServletWebServerInitializedEvent(
ServletWebServerApplicationContext applicationContext, WebServer source) {
WebServer source, ServletWebServerApplicationContext applicationContext) {
super(source);
this.applicationContext = applicationContext;
}
......
......@@ -67,7 +67,7 @@ public class EmbeddedServerPortFileWriterTests {
WebServer source = mock(WebServer.class);
given(source.getPort()).willReturn(port);
ServletWebServerInitializedEvent event = new ServletWebServerInitializedEvent(
applicationContext, source);
source, applicationContext);
return event;
};
BiFunction<String, Integer, ? extends WebServerInitializedEvent> reactiveEvent = (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment