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
96596f8e
Commit
96596f8e
authored
Aug 28, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish contribution
See gh-17962
parent
7ee36561
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
AutoConfigurationSorter.java
...framework/boot/autoconfigure/AutoConfigurationSorter.java
+1
-2
ParentAwareNamingStrategy.java
...ork/boot/autoconfigure/jmx/ParentAwareNamingStrategy.java
+1
-3
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationSorter.java
View file @
96596f8e
...
@@ -136,8 +136,7 @@ class AutoConfigurationSorter {
...
@@ -136,8 +136,7 @@ class AutoConfigurationSorter {
}
}
Set
<
String
>
getClassesRequestedAfter
(
String
className
)
{
Set
<
String
>
getClassesRequestedAfter
(
String
className
)
{
Set
<
String
>
setOfClassesRequestedAfter
=
get
(
className
).
getAfter
();
Set
<
String
>
classesRequestedAfter
=
new
LinkedHashSet
<>(
get
(
className
).
getAfter
());
Set
<
String
>
classesRequestedAfter
=
new
LinkedHashSet
<>(
setOfClassesRequestedAfter
);
this
.
classes
.
forEach
((
name
,
autoConfigurationClass
)
->
{
this
.
classes
.
forEach
((
name
,
autoConfigurationClass
)
->
{
if
(
autoConfigurationClass
.
getBefore
().
contains
(
className
))
{
if
(
autoConfigurationClass
.
getBefore
().
contains
(
className
))
{
classesRequestedAfter
.
add
(
name
);
classesRequestedAfter
.
add
(
name
);
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jmx/ParentAwareNamingStrategy.java
View file @
96596f8e
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
package
org
.
springframework
.
boot
.
autoconfigure
.
jmx
;
package
org
.
springframework
.
boot
.
autoconfigure
.
jmx
;
import
java.util.Hashtable
;
import
java.util.Hashtable
;
import
java.util.Map
;
import
javax.management.MalformedObjectNameException
;
import
javax.management.MalformedObjectNameException
;
import
javax.management.ObjectName
;
import
javax.management.ObjectName
;
...
@@ -58,8 +57,7 @@ public class ParentAwareNamingStrategy extends MetadataNamingStrategy implements
...
@@ -58,8 +57,7 @@ public class ParentAwareNamingStrategy extends MetadataNamingStrategy implements
@Override
@Override
public
ObjectName
getObjectName
(
Object
managedBean
,
String
beanKey
)
throws
MalformedObjectNameException
{
public
ObjectName
getObjectName
(
Object
managedBean
,
String
beanKey
)
throws
MalformedObjectNameException
{
ObjectName
name
=
super
.
getObjectName
(
managedBean
,
beanKey
);
ObjectName
name
=
super
.
getObjectName
(
managedBean
,
beanKey
);
Map
<
String
,
String
>
keyPropertyList
=
name
.
getKeyPropertyList
();
Hashtable
<
String
,
String
>
properties
=
new
Hashtable
<>(
name
.
getKeyPropertyList
());
Hashtable
<
String
,
String
>
properties
=
new
Hashtable
<>(
keyPropertyList
);
if
(
this
.
ensureUniqueRuntimeObjectNames
)
{
if
(
this
.
ensureUniqueRuntimeObjectNames
)
{
properties
.
put
(
"identity"
,
ObjectUtils
.
getIdentityHexString
(
managedBean
));
properties
.
put
(
"identity"
,
ObjectUtils
.
getIdentityHexString
(
managedBean
));
}
}
...
...
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