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
d6d32ec0
Commit
d6d32ec0
authored
Oct 29, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
5e813f60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
EndpointId.java
...org/springframework/boot/actuate/endpoint/EndpointId.java
+2
-2
PropertyDescriptorResolver.java
...ot/configurationprocessor/PropertyDescriptorResolver.java
+3
-3
No files found.
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/EndpointId.java
View file @
d6d32ec0
...
...
@@ -45,7 +45,7 @@ public final class EndpointId {
private
static
final
Pattern
WARNING_PATTERN
=
Pattern
.
compile
(
"[\\.\\-]+"
);
private
static
final
String
MIGRATE_LEGACY_NAMES_PROPRTY
=
"management.endpoints.migrate-legacy-ids"
;
private
static
final
String
MIGRATE_LEGACY_NAMES_PROP
E
RTY
=
"management.endpoints.migrate-legacy-ids"
;
private
final
String
value
;
...
...
@@ -130,7 +130,7 @@ public final class EndpointId {
}
private
static
String
migrateLegacyId
(
Environment
environment
,
String
value
)
{
if
(
environment
.
getProperty
(
MIGRATE_LEGACY_NAMES_PROPRTY
,
Boolean
.
class
,
false
))
{
if
(
environment
.
getProperty
(
MIGRATE_LEGACY_NAMES_PROP
E
RTY
,
Boolean
.
class
,
false
))
{
return
value
.
replace
(
"."
,
""
);
}
return
value
;
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/PropertyDescriptorResolver.java
View file @
d6d32ec0
...
...
@@ -158,12 +158,12 @@ class PropertyDescriptorResolver {
private
ExecutableElement
findBoundConstructor
()
{
ExecutableElement
boundConstructor
=
null
;
for
(
ExecutableElement
canidate
:
this
.
constructors
)
{
if
(!
canidate
.
getParameters
().
isEmpty
())
{
for
(
ExecutableElement
can
d
idate
:
this
.
constructors
)
{
if
(!
can
d
idate
.
getParameters
().
isEmpty
())
{
if
(
boundConstructor
!=
null
)
{
return
null
;
}
boundConstructor
=
canidate
;
boundConstructor
=
can
d
idate
;
}
}
return
boundConstructor
;
...
...
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