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
b65ba609
Commit
b65ba609
authored
Oct 02, 2019
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish 'Simplify some code'
See gh-18438
parent
e6b45de4
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
14 deletions
+11
-14
OverrideAutoConfigurationContextCustomizerFactory.java
...re/OverrideAutoConfigurationContextCustomizerFactory.java
+1
-1
TypeExcludeFiltersContextCustomizer.java
...configure/filter/TypeExcludeFiltersContextCustomizer.java
+2
-2
PropertyMappingContextCustomizer.java
...onfigure/properties/PropertyMappingContextCustomizer.java
+2
-2
ExcludeFilterContextCustomizer.java
...t/test/context/filter/ExcludeFilterContextCustomizer.java
+1
-4
DuplicateJsonObjectContextCustomizerFactory.java
...est/json/DuplicateJsonObjectContextCustomizerFactory.java
+1
-1
OutputCapture.java
...a/org/springframework/boot/test/system/OutputCapture.java
+2
-2
TestRestTemplateContextCustomizer.java
...ot/test/web/client/TestRestTemplateContextCustomizer.java
+1
-1
WebTestClientContextCustomizer.java
...t/web/reactive/server/WebTestClientContextCustomizer.java
+1
-1
No files found.
spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/OverrideAutoConfigurationContextCustomizerFactory.java
View file @
b65ba609
...
@@ -56,7 +56,7 @@ class OverrideAutoConfigurationContextCustomizerFactory implements ContextCustom
...
@@ -56,7 +56,7 @@ class OverrideAutoConfigurationContextCustomizerFactory implements ContextCustom
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
return
(
obj
!=
null
&&
obj
.
getClass
()
==
getClass
());
return
(
obj
!=
null
)
&&
(
obj
.
getClass
()
==
getClass
());
}
}
@Override
@Override
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/filter/TypeExcludeFiltersContextCustomizer.java
View file @
b65ba609
...
@@ -71,8 +71,8 @@ class TypeExcludeFiltersContextCustomizer implements ContextCustomizer {
...
@@ -71,8 +71,8 @@ class TypeExcludeFiltersContextCustomizer implements ContextCustomizer {
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
return
(
obj
!=
null
&&
getClass
()
==
obj
.
getClass
(
)
return
(
obj
!=
null
)
&&
(
getClass
()
==
obj
.
getClass
()
)
&&
this
.
filters
.
equals
(((
TypeExcludeFiltersContextCustomizer
)
obj
).
filters
)
)
;
&&
this
.
filters
.
equals
(((
TypeExcludeFiltersContextCustomizer
)
obj
).
filters
);
}
}
@Override
@Override
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/properties/PropertyMappingContextCustomizer.java
View file @
b65ba609
...
@@ -57,8 +57,8 @@ class PropertyMappingContextCustomizer implements ContextCustomizer {
...
@@ -57,8 +57,8 @@ class PropertyMappingContextCustomizer implements ContextCustomizer {
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
return
(
obj
!=
null
&&
getClass
()
==
obj
.
getClass
(
)
return
(
obj
!=
null
)
&&
(
getClass
()
==
obj
.
getClass
()
)
&&
this
.
propertySource
.
equals
(((
PropertyMappingContextCustomizer
)
obj
).
propertySource
)
)
;
&&
this
.
propertySource
.
equals
(((
PropertyMappingContextCustomizer
)
obj
).
propertySource
);
}
}
@Override
@Override
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/filter/ExcludeFilterContextCustomizer.java
View file @
b65ba609
...
@@ -37,10 +37,7 @@ class ExcludeFilterContextCustomizer implements ContextCustomizer {
...
@@ -37,10 +37,7 @@ class ExcludeFilterContextCustomizer implements ContextCustomizer {
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
if
(
obj
==
this
)
{
return
(
obj
!=
null
)
&&
(
getClass
()
==
obj
.
getClass
());
return
true
;
}
return
obj
!=
null
&&
getClass
()
==
obj
.
getClass
();
}
}
@Override
@Override
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/json/DuplicateJsonObjectContextCustomizerFactory.java
View file @
b65ba609
...
@@ -80,7 +80,7 @@ class DuplicateJsonObjectContextCustomizerFactory implements ContextCustomizerFa
...
@@ -80,7 +80,7 @@ class DuplicateJsonObjectContextCustomizerFactory implements ContextCustomizerFa
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
return
obj
!=
null
&&
obj
.
getClass
()
==
getClass
(
);
return
(
obj
!=
null
)
&&
(
getClass
()
==
obj
.
getClass
()
);
}
}
@Override
@Override
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCapture.java
View file @
b65ba609
...
@@ -208,8 +208,8 @@ class OutputCapture implements CapturedOutput {
...
@@ -208,8 +208,8 @@ class OutputCapture implements CapturedOutput {
}
}
private
static
PrintStream
getSystemStream
(
PrintStream
printStream
)
{
private
static
PrintStream
getSystemStream
(
PrintStream
printStream
)
{
if
(
printStream
instanceof
PrintStreamCapture
)
{
while
(
printStream
instanceof
PrintStreamCapture
)
{
return
((
PrintStreamCapture
)
printStream
).
getParent
();
printStream
=
((
PrintStreamCapture
)
printStream
).
getParent
();
}
}
return
printStream
;
return
printStream
;
}
}
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplateContextCustomizer.java
View file @
b65ba609
...
@@ -78,7 +78,7 @@ class TestRestTemplateContextCustomizer implements ContextCustomizer {
...
@@ -78,7 +78,7 @@ class TestRestTemplateContextCustomizer implements ContextCustomizer {
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
return
obj
!=
null
&&
obj
.
getClass
()
==
getClass
(
);
return
(
obj
!=
null
)
&&
(
obj
.
getClass
()
==
getClass
()
);
}
}
@Override
@Override
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/reactive/server/WebTestClientContextCustomizer.java
View file @
b65ba609
...
@@ -79,7 +79,7 @@ class WebTestClientContextCustomizer implements ContextCustomizer {
...
@@ -79,7 +79,7 @@ class WebTestClientContextCustomizer implements ContextCustomizer {
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
return
(
obj
!=
null
&&
obj
.
getClass
()
==
getClass
());
return
(
obj
!=
null
)
&&
(
obj
.
getClass
()
==
getClass
());
}
}
@Override
@Override
...
...
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