Fix checkstyle violation

This commit is contained in:
Stephane Nicoll 2019-03-14 13:22:43 +01:00
parent d2164a1ca3
commit 0e0ea7f00a

View File

@ -81,7 +81,7 @@ class DefaultEndpointObjectNameFactory implements EndpointObjectNameFactory {
return this.environment.getProperty("spring.jmx.default-domain",
"org.springframework.boot");
}
private boolean hasMBean(String baseObjectName) throws MalformedObjectNameException {
ObjectName query = new ObjectName(baseObjectName + ",*");
return !this.mBeanServer.queryNames(query, null).isEmpty();