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
7712f9c0
Commit
7712f9c0
authored
Aug 17, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17884 from thelproad
* pr/17884: Simplify if statements Closes gh-17884
parents
fc0cee5e
9c1f503e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Elements.java
...springframework/boot/autoconfigureprocessor/Elements.java
+1
-1
SystemPropertyUtils.java
...springframework/boot/loader/util/SystemPropertyUtils.java
+1
-1
OutputCapture.java
...pringframework/boot/testsupport/system/OutputCapture.java
+1
-1
No files found.
spring-boot-project/spring-boot-tools/spring-boot-autoconfigure-processor/src/main/java/org/springframework/boot/autoconfigureprocessor/Elements.java
View file @
7712f9c0
...
@@ -49,7 +49,7 @@ final class Elements {
...
@@ -49,7 +49,7 @@ final class Elements {
if
(
type
instanceof
DeclaredType
)
{
if
(
type
instanceof
DeclaredType
)
{
DeclaredType
declaredType
=
(
DeclaredType
)
type
;
DeclaredType
declaredType
=
(
DeclaredType
)
type
;
Element
enclosingElement
=
declaredType
.
asElement
().
getEnclosingElement
();
Element
enclosingElement
=
declaredType
.
asElement
().
getEnclosingElement
();
if
(
enclosingElement
!=
null
&&
enclosingElement
instanceof
TypeElement
)
{
if
(
enclosingElement
instanceof
TypeElement
)
{
return
(
TypeElement
)
enclosingElement
;
return
(
TypeElement
)
enclosingElement
;
}
}
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/util/SystemPropertyUtils.java
View file @
7712f9c0
...
@@ -109,7 +109,7 @@ public abstract class SystemPropertyUtils {
...
@@ -109,7 +109,7 @@ public abstract class SystemPropertyUtils {
placeholder
=
parseStringValue
(
properties
,
value
,
placeholder
,
visitedPlaceholders
);
placeholder
=
parseStringValue
(
properties
,
value
,
placeholder
,
visitedPlaceholders
);
// Now obtain the value for the fully resolved key...
// Now obtain the value for the fully resolved key...
String
propVal
=
resolvePlaceholder
(
properties
,
value
,
placeholder
);
String
propVal
=
resolvePlaceholder
(
properties
,
value
,
placeholder
);
if
(
propVal
==
null
&&
VALUE_SEPARATOR
!=
null
)
{
if
(
propVal
==
null
)
{
int
separatorIndex
=
placeholder
.
indexOf
(
VALUE_SEPARATOR
);
int
separatorIndex
=
placeholder
.
indexOf
(
VALUE_SEPARATOR
);
if
(
separatorIndex
!=
-
1
)
{
if
(
separatorIndex
!=
-
1
)
{
String
actualPlaceholder
=
placeholder
.
substring
(
0
,
separatorIndex
);
String
actualPlaceholder
=
placeholder
.
substring
(
0
,
separatorIndex
);
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/system/OutputCapture.java
View file @
7712f9c0
...
@@ -59,7 +59,7 @@ class OutputCapture implements CapturedOutput {
...
@@ -59,7 +59,7 @@ class OutputCapture implements CapturedOutput {
if
(
obj
==
this
)
{
if
(
obj
==
this
)
{
return
true
;
return
true
;
}
}
if
(
obj
instanceof
C
apturedOutput
||
obj
instanceof
C
harSequence
)
{
if
(
obj
instanceof
CharSequence
)
{
return
getAll
().
equals
(
obj
.
toString
());
return
getAll
().
equals
(
obj
.
toString
());
}
}
return
false
;
return
false
;
...
...
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