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
e2fb093c
Commit
e2fb093c
authored
Feb 23, 2018
by
dreis2211
Committed by
Stephane Nicoll
Feb 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
See gh-12202
parent
602f733f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
JavaPluginAction.java
.../springframework/boot/gradle/plugin/JavaPluginAction.java
+1
-2
SystemEnvironmentPropertyMapper.java
...xt/properties/source/SystemEnvironmentPropertyMapper.java
+2
-6
No files found.
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/JavaPluginAction.java
View file @
e2fb093c
...
...
@@ -167,8 +167,7 @@ final class JavaPluginAction implements PluginApplicationAction {
?
compile
.
getOptions
().
getAnnotationProcessorPath
().
getFiles
()
:
compile
.
getClasspath
().
getFiles
();
return
files
.
stream
().
map
(
File:
:
getName
)
.
filter
((
name
)
->
name
.
startsWith
(
"spring-boot-configuration-processor"
))
.
findFirst
().
isPresent
();
.
anyMatch
((
name
)
->
name
.
startsWith
(
"spring-boot-configuration-processor"
));
}
private
void
configureAdditionalMetadataLocations
(
JavaCompile
compile
,
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/SystemEnvironmentPropertyMapper.java
View file @
e2fb093c
...
...
@@ -16,8 +16,6 @@
package
org
.
springframework
.
boot
.
context
.
properties
.
source
;
import
java.util.stream.IntStream
;
import
org.springframework.boot.context.properties.source.ConfigurationPropertyName.Form
;
/**
...
...
@@ -95,7 +93,7 @@ final class SystemEnvironmentPropertyMapper implements PropertyMapper {
}
private
Object
convertLegacyNameElement
(
String
element
)
{
return
element
.
replace
(
"-"
,
"_"
).
toUpperCase
();
return
element
.
replace
(
'-'
,
'_'
).
toUpperCase
();
}
private
CharSequence
processElementValue
(
CharSequence
value
)
{
...
...
@@ -104,9 +102,7 @@ final class SystemEnvironmentPropertyMapper implements PropertyMapper {
}
private
static
boolean
isNumber
(
String
string
)
{
IntStream
nonDigits
=
string
.
chars
().
filter
((
c
)
->
!
Character
.
isDigit
(
c
));
boolean
hasNonDigit
=
nonDigits
.
findFirst
().
isPresent
();
return
!
hasNonDigit
;
return
string
.
chars
().
allMatch
(
Character:
:
isDigit
);
}
}
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