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
243278d5
Commit
243278d5
authored
Aug 09, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14023 from izeye:polish-20180809
* pr/14023: Polish
parents
c8570a94
101cc59b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
DefaultEndpointObjectNameFactory.java
...figure/endpoint/jmx/DefaultEndpointObjectNameFactory.java
+4
-4
FlywayAutoConfiguration.java
...rk/boot/autoconfigure/flyway/FlywayAutoConfiguration.java
+2
-2
JmxAutoConfiguration.java
...ramework/boot/autoconfigure/jmx/JmxAutoConfiguration.java
+2
-2
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/jmx/DefaultEndpointObjectNameFactory.java
View file @
243278d5
...
@@ -54,17 +54,17 @@ class DefaultEndpointObjectNameFactory implements EndpointObjectNameFactory {
...
@@ -54,17 +54,17 @@ class DefaultEndpointObjectNameFactory implements EndpointObjectNameFactory {
@SuppressWarnings
(
"deprecation"
)
@SuppressWarnings
(
"deprecation"
)
private
static
boolean
determineUniqueNames
(
Environment
environment
,
private
static
boolean
determineUniqueNames
(
Environment
environment
,
JmxEndpointProperties
properties
)
{
JmxEndpointProperties
properties
)
{
Boolean
uniqueName
=
environment
.
getProperty
(
"spring.jmx.unique-names"
,
Boolean
uniqueName
s
=
environment
.
getProperty
(
"spring.jmx.unique-names"
,
Boolean
.
class
);
Boolean
.
class
);
Boolean
endpointUniqueNames
=
properties
.
getUniqueNames
();
Boolean
endpointUniqueNames
=
properties
.
getUniqueNames
();
if
(
uniqueName
==
null
)
{
if
(
uniqueName
s
==
null
)
{
return
(
endpointUniqueNames
!=
null
)
?
endpointUniqueNames
:
false
;
return
(
endpointUniqueNames
!=
null
)
?
endpointUniqueNames
:
false
;
}
}
else
if
(
endpointUniqueNames
!=
null
&
!
uniqueName
.
equals
(
endpointUniqueNames
))
{
if
(
endpointUniqueNames
!=
null
&
!
uniqueNames
.
equals
(
endpointUniqueNames
))
{
throw
new
IllegalArgumentException
(
throw
new
IllegalArgumentException
(
"Configuration mismatch, 'management.endpoints.jmx.unique-names' is deprecated, use only 'spring.jmx.unique-names'"
);
"Configuration mismatch, 'management.endpoints.jmx.unique-names' is deprecated, use only 'spring.jmx.unique-names'"
);
}
}
return
uniqueName
;
return
uniqueName
s
;
}
}
@Override
@Override
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java
View file @
243278d5
...
@@ -180,9 +180,9 @@ public class FlywayAutoConfiguration {
...
@@ -180,9 +180,9 @@ public class FlywayAutoConfiguration {
}
}
private
void
checkLocationExists
(
Flyway
flyway
)
{
private
void
checkLocationExists
(
Flyway
flyway
)
{
if
(
this
.
properties
.
isCheckLocation
())
{
String
[]
locations
=
new
LocationResolver
(
flyway
.
getDataSource
())
String
[]
locations
=
new
LocationResolver
(
flyway
.
getDataSource
())
.
resolveLocations
(
this
.
properties
.
getLocations
());
.
resolveLocations
(
this
.
properties
.
getLocations
());
if
(
this
.
properties
.
isCheckLocation
())
{
Assert
.
state
(
locations
.
length
!=
0
,
Assert
.
state
(
locations
.
length
!=
0
,
"Migration script locations not configured"
);
"Migration script locations not configured"
);
boolean
exists
=
hasAtLeastOneLocation
(
locations
);
boolean
exists
=
hasAtLeastOneLocation
(
locations
);
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jmx/JmxAutoConfiguration.java
View file @
243278d5
...
@@ -94,9 +94,9 @@ public class JmxAutoConfiguration implements EnvironmentAware, BeanFactoryAware
...
@@ -94,9 +94,9 @@ public class JmxAutoConfiguration implements EnvironmentAware, BeanFactoryAware
if
(
StringUtils
.
hasLength
(
defaultDomain
))
{
if
(
StringUtils
.
hasLength
(
defaultDomain
))
{
namingStrategy
.
setDefaultDomain
(
defaultDomain
);
namingStrategy
.
setDefaultDomain
(
defaultDomain
);
}
}
boolean
uniqueName
=
this
.
environment
.
getProperty
(
"spring.jmx.unique-names"
,
boolean
uniqueName
s
=
this
.
environment
.
getProperty
(
"spring.jmx.unique-names"
,
Boolean
.
class
,
false
);
Boolean
.
class
,
false
);
namingStrategy
.
setEnsureUniqueRuntimeObjectNames
(
uniqueName
);
namingStrategy
.
setEnsureUniqueRuntimeObjectNames
(
uniqueName
s
);
return
namingStrategy
;
return
namingStrategy
;
}
}
...
...
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