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
a989879d
Commit
a989879d
authored
Apr 26, 2020
by
richard1230
Committed by
Stephane Nicoll
Apr 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
See gh-21130
parent
f85a0884
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
11 deletions
+6
-11
CloudPlatform.java
...in/java/org/springframework/boot/cloud/CloudPlatform.java
+1
-1
ValueObjectBinder.java
...ework/boot/context/properties/bind/ValueObjectBinder.java
+1
-4
DeferredLog.java
...in/java/org/springframework/boot/logging/DeferredLog.java
+0
-1
TomcatGracefulShutdown.java
...work/boot/web/embedded/tomcat/TomcatGracefulShutdown.java
+2
-3
UndertowWebServer.java
...amework/boot/web/embedded/undertow/UndertowWebServer.java
+2
-2
No files found.
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/cloud/CloudPlatform.java
View file @
a989879d
...
...
@@ -149,7 +149,7 @@ public enum CloudPlatform {
*/
public
boolean
isEnforced
(
Environment
environment
)
{
String
platform
=
environment
.
getProperty
(
"spring.main.cloud-platform"
);
return
(
platform
!=
null
)
?
name
().
equalsIgnoreCase
(
platform
)
:
false
;
return
name
().
equalsIgnoreCase
(
platform
)
;
}
/**
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/ValueObjectBinder.java
View file @
a989879d
...
...
@@ -117,10 +117,7 @@ class ValueObjectBinder implements DataObjectBinder {
}
private
boolean
isEmptyDefaultValueAllowed
(
Class
<?>
type
)
{
if
(
type
.
isPrimitive
()
||
type
.
isEnum
()
||
isAggregate
(
type
)
||
type
.
getName
().
startsWith
(
"java.lang"
))
{
return
false
;
}
return
true
;
return
!
type
.
isPrimitive
()
&&
!
type
.
isEnum
()
&&
!
isAggregate
(
type
)
&&
!
type
.
getName
().
startsWith
(
"java.lang"
);
}
private
boolean
isAggregate
(
Class
<?>
type
)
{
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java
View file @
a989879d
...
...
@@ -232,7 +232,6 @@ public class DeferredLog implements Log {
return
;
case
FATAL:
log
.
fatal
(
message
,
throwable
);
return
;
}
}
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatGracefulShutdown.java
View file @
a989879d
...
...
@@ -18,6 +18,7 @@ package org.springframework.boot.web.embedded.tomcat;
import
java.time.Duration
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
org.apache.catalina.Container
;
...
...
@@ -106,9 +107,7 @@ class TomcatGracefulShutdown implements GracefulShutdown {
private
List
<
Connector
>
getConnectors
()
{
List
<
Connector
>
connectors
=
new
ArrayList
<>();
for
(
Service
service
:
this
.
tomcat
.
getServer
().
findServices
())
{
for
(
Connector
connector
:
service
.
findConnectors
())
{
connectors
.
add
(
connector
);
}
connectors
.
addAll
(
Arrays
.
asList
(
service
.
findConnectors
()));
}
return
connectors
;
}
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/UndertowWebServer.java
View file @
a989879d
...
...
@@ -251,11 +251,11 @@ public class UndertowWebServer implements WebServer {
@Override
public
boolean
shutDownGracefully
()
{
return
(
this
.
gracefulShutdown
!=
null
)
?
this
.
gracefulShutdown
.
shutDownGracefully
()
:
false
;
return
(
this
.
gracefulShutdown
!=
null
)
&&
this
.
gracefulShutdown
.
shutDownGracefully
()
;
}
boolean
inGracefulShutdown
()
{
return
(
this
.
gracefulShutdown
!=
null
)
?
this
.
gracefulShutdown
.
isShuttingDown
()
:
false
;
return
(
this
.
gracefulShutdown
!=
null
)
&&
this
.
gracefulShutdown
.
isShuttingDown
()
;
}
/**
...
...
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