Fix checkstyle issues to enforce it
[controller.git] / opendaylight / config / config-manager / src / main / java / org / opendaylight / controller / config / manager / impl / jmx / RootRuntimeBeanRegistratorImpl.java
index 1f29a656045282cf0989baa2125b56ca31b9c247..e84d2ee953efdc2c46bd8e4ee465500fac146653 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2013, 2017 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -16,8 +16,7 @@ import org.opendaylight.controller.config.api.jmx.ObjectNameUtil;
 import org.opendaylight.controller.config.api.runtime.RootRuntimeBeanRegistrator;
 import org.opendaylight.controller.config.api.runtime.RuntimeBean;
 
-public class RootRuntimeBeanRegistratorImpl implements
-        RootRuntimeBeanRegistrator {
+public class RootRuntimeBeanRegistratorImpl implements RootRuntimeBeanRegistrator {
     private final InternalJMXRegistrator internalJMXRegistrator;
     private final ModuleIdentifier moduleIdentifier;
     private final ObjectName defaultRuntimeON;
@@ -26,10 +25,8 @@ public class RootRuntimeBeanRegistratorImpl implements
             final ModuleIdentifier moduleIdentifier) {
         this.internalJMXRegistrator = Preconditions.checkNotNull(internalJMXRegistrator);
         this.moduleIdentifier = moduleIdentifier;
-        defaultRuntimeON = ObjectNameUtil.createRuntimeBeanName(
-                moduleIdentifier.getFactoryName(),
-                moduleIdentifier.getInstanceName(),
-                Collections.<String, String> emptyMap());
+        defaultRuntimeON = ObjectNameUtil.createRuntimeBeanName(moduleIdentifier.getFactoryName(),
+                moduleIdentifier.getInstanceName(), Collections.<String, String>emptyMap());
     }
 
     @Override
@@ -39,8 +36,8 @@ public class RootRuntimeBeanRegistratorImpl implements
         } catch (final InstanceAlreadyExistsException e) {
             throw sanitize(e, moduleIdentifier, defaultRuntimeON);
         }
-        return new HierarchicalRuntimeBeanRegistrationImpl(moduleIdentifier,
-                internalJMXRegistrator, Collections.<String, String> emptyMap());
+        return new HierarchicalRuntimeBeanRegistrationImpl(moduleIdentifier, internalJMXRegistrator,
+                Collections.<String, String>emptyMap());
     }
 
     @Override
@@ -48,10 +45,9 @@ public class RootRuntimeBeanRegistratorImpl implements
         internalJMXRegistrator.close();
     }
 
-    static IllegalStateException sanitize(final InstanceAlreadyExistsException e,
+    static IllegalStateException sanitize(final InstanceAlreadyExistsException exception,
             final ModuleIdentifier moduleIdentifier, final ObjectName on) {
-        throw new IllegalStateException("Could not register runtime bean in "
-                + moduleIdentifier + " under name " + on, e);
-
+        throw new IllegalStateException("Could not register runtime bean in " + moduleIdentifier + " under name " + on,
+                exception);
     }
 }