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
e8effad0
Commit
e8effad0
authored
Aug 14, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17852 from succezlijunyi
* pr/17852: Simplify some code Closes gh-17852
parents
21f1b3a7
b26f887a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
LocalDevToolsAutoConfigurationTests.java
...ls/autoconfigure/LocalDevToolsAutoConfigurationTests.java
+1
-2
ClassPathChangeUploaderTests.java
.../devtools/remote/client/ClassPathChangeUploaderTests.java
+1
-2
No files found.
spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfigurationTests.java
View file @
e8effad0
...
@@ -252,8 +252,7 @@ class LocalDevToolsAutoConfigurationTests {
...
@@ -252,8 +252,7 @@ class LocalDevToolsAutoConfigurationTests {
Restarter
.
initialize
(
new
String
[
0
],
false
,
new
MockRestartInitializer
(),
false
);
Restarter
.
initialize
(
new
String
[
0
],
false
,
new
MockRestartInitializer
(),
false
);
SpringApplication
application
=
new
SpringApplication
(
config
);
SpringApplication
application
=
new
SpringApplication
(
config
);
application
.
setDefaultProperties
(
getDefaultProperties
(
properties
));
application
.
setDefaultProperties
(
getDefaultProperties
(
properties
));
ConfigurableApplicationContext
context
=
application
.
run
(
args
);
return
application
.
run
(
args
);
return
context
;
}
}
private
Map
<
String
,
Object
>
getDefaultProperties
(
Map
<
String
,
Object
>
specifiedProperties
)
{
private
Map
<
String
,
Object
>
getDefaultProperties
(
Map
<
String
,
Object
>
specifiedProperties
)
{
...
...
spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/remote/client/ClassPathChangeUploaderTests.java
View file @
e8effad0
...
@@ -139,8 +139,7 @@ class ClassPathChangeUploaderTests {
...
@@ -139,8 +139,7 @@ class ClassPathChangeUploaderTests {
files
.
add
(
new
ChangedFile
(
sourceFolder
,
file3
,
Type
.
DELETE
));
files
.
add
(
new
ChangedFile
(
sourceFolder
,
file3
,
Type
.
DELETE
));
Set
<
ChangedFiles
>
changeSet
=
new
LinkedHashSet
<>();
Set
<
ChangedFiles
>
changeSet
=
new
LinkedHashSet
<>();
changeSet
.
add
(
new
ChangedFiles
(
sourceFolder
,
files
));
changeSet
.
add
(
new
ChangedFiles
(
sourceFolder
,
files
));
ClassPathChangedEvent
event
=
new
ClassPathChangedEvent
(
this
,
changeSet
,
false
);
return
new
ClassPathChangedEvent
(
this
,
changeSet
,
false
);
return
event
;
}
}
private
File
createFile
(
File
sourceFolder
,
String
name
)
throws
IOException
{
private
File
createFile
(
File
sourceFolder
,
String
name
)
throws
IOException
{
...
...
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