Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
bc4a11dd
Commit
bc4a11dd
authored
May 03, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make argument ordering consistent across web server initialized events
parent
328bbaf1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ServletWebServerApplicationContext.java
...b/servlet/context/ServletWebServerApplicationContext.java
+1
-1
ServletWebServerInitializedEvent.java
...web/servlet/context/ServletWebServerInitializedEvent.java
+1
-1
EmbeddedServerPortFileWriterTests.java
...mework/boot/system/EmbeddedServerPortFileWriterTests.java
+1
-1
No files found.
spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java
View file @
bc4a11dd
...
...
@@ -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
));
}
}
...
...
spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerInitializedEvent.java
View file @
bc4a11dd
...
...
@@ -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
;
}
...
...
spring-boot/src/test/java/org/springframework/boot/system/EmbeddedServerPortFileWriterTests.java
View file @
bc4a11dd
...
...
@@ -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
=
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment