Polishing

(cherry picked from commit 77e00f1)
This commit is contained in:
Juergen Hoeller
2016-10-31 20:40:46 +01:00
parent 33dbbce182
commit b07d40cc44
2 changed files with 7 additions and 6 deletions

View File

@@ -60,6 +60,7 @@ public class LiveBeansView implements LiveBeansViewMBean, ApplicationContextAwar
private static String applicationName;
static void registerApplicationContext(ConfigurableApplicationContext applicationContext) {
String mbeanDomain = applicationContext.getEnvironment().getProperty(MBEAN_DOMAIN_PROPERTY_NAME);
if (mbeanDomain != null) {
@@ -90,7 +91,8 @@ public class LiveBeansView implements LiveBeansViewMBean, ApplicationContextAwar
}
catch (Throwable ex) {
throw new ApplicationContextException("Failed to unregister LiveBeansView MBean", ex);
} finally {
}
finally {
applicationName = null;
}
}