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
1c8f7278
Commit
1c8f7278
authored
Aug 08, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish "Simplify if statements"
See gh-17785
parent
c6c3a91f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
Metadata.java
...mework/boot/configurationprocessor/metadata/Metadata.java
+8
-2
MainClassFinder.java
...rg/springframework/boot/loader/tools/MainClassFinder.java
+4
-1
No files found.
spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/metadata/Metadata.java
View file @
1c8f7278
...
@@ -157,7 +157,10 @@ public final class Metadata {
...
@@ -157,7 +157,10 @@ public final class Metadata {
if
(
this
.
deprecation
==
null
&&
itemMetadata
.
getDeprecation
()
!=
null
)
{
if
(
this
.
deprecation
==
null
&&
itemMetadata
.
getDeprecation
()
!=
null
)
{
return
false
;
return
false
;
}
}
return
this
.
deprecation
==
null
||
this
.
deprecation
.
equals
(
itemMetadata
.
getDeprecation
());
if
(
this
.
deprecation
!=
null
&&
!
this
.
deprecation
.
equals
(
itemMetadata
.
getDeprecation
()))
{
return
false
;
}
return
true
;
}
}
public
MetadataItemCondition
ofType
(
Class
<?>
dataType
)
{
public
MetadataItemCondition
ofType
(
Class
<?>
dataType
)
{
...
@@ -339,7 +342,10 @@ public final class Metadata {
...
@@ -339,7 +342,10 @@ public final class Metadata {
if
(
this
.
value
!=
null
&&
!
this
.
value
.
equals
(
valueHint
.
getValue
()))
{
if
(
this
.
value
!=
null
&&
!
this
.
value
.
equals
(
valueHint
.
getValue
()))
{
return
false
;
return
false
;
}
}
return
this
.
description
==
null
||
this
.
description
.
equals
(
valueHint
.
getDescription
());
if
(
this
.
description
!=
null
&&
!
this
.
description
.
equals
(
valueHint
.
getDescription
()))
{
return
false
;
}
return
true
;
}
}
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/MainClassFinder.java
View file @
1c8f7278
...
@@ -381,7 +381,10 @@ public abstract class MainClassFinder {
...
@@ -381,7 +381,10 @@ public abstract class MainClassFinder {
return
false
;
return
false
;
}
}
MainClass
other
=
(
MainClass
)
obj
;
MainClass
other
=
(
MainClass
)
obj
;
return
this
.
name
.
equals
(
other
.
name
);
if
(!
this
.
name
.
equals
(
other
.
name
))
{
return
false
;
}
return
true
;
}
}
@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