Fix checkstyle reported by odlparent-3.0.0
[controller.git] / opendaylight / config / config-manager / src / main / java / org / opendaylight / controller / config / manager / impl / dynamicmbean / AbstractDynamicWrapper.java
index e5bb549492708dd8542d909fdae21267c247246a..54f7946db5dbf9fa5e88a554adc3598bc1a47420 100644 (file)
@@ -110,17 +110,17 @@ public abstract class AbstractDynamicWrapper implements DynamicMBeanModuleWrappe
      * platform mbean server. Wait until this wrapper gets unregistered, in that
      * case unregister the module and remove listener.
      */
-    private NotificationListener registerActualModule(final ObjectName objectNameInternal,
+    private NotificationListener registerActualModule(final ObjectName internalObjectName,
             final MBeanServer configMBeanServer) {
         try {
-            internalServer.registerMBean(module, objectNameInternal);
+            internalServer.registerMBean(module, internalObjectName);
         } catch (InstanceAlreadyExistsException | MBeanRegistrationException | NotCompliantMBeanException
                 | IllegalStateException e) {
-            throw new IllegalStateException("Error occured during mbean registration with name " + objectNameInternal,
+            throw new IllegalStateException("Error occured during mbean registration with name " + internalObjectName,
                     e);
         }
 
-        NotificationListener listener = new ModuleNotificationListener(objectNameInternal, internalServer,
+        NotificationListener listener = new ModuleNotificationListener(internalObjectName, internalServer,
                 configMBeanServer);
         try {
             configMBeanServer.addNotificationListener(MBeanServerDelegate.DELEGATE_NAME, listener, null, null);
@@ -156,7 +156,7 @@ public abstract class AbstractDynamicWrapper implements DynamicMBeanModuleWrappe
 
     // inspect all exported interfaces ending with MXBean, extract getters &
     // setters into attribute holder
-    private Map<String, AttributeHolder> buildMBeanInfo(final boolean writable, final ModuleIdentifier moduleIdentifier,
+    private Map<String, AttributeHolder> buildMBeanInfo(final boolean writable, final ModuleIdentifier modId,
             final Set<Class<?>> jmxInterfaces, final ObjectName internalObjectName) {
 
         // internal variables for describing MBean elements
@@ -187,7 +187,7 @@ public abstract class AbstractDynamicWrapper implements DynamicMBeanModuleWrappe
                 try {
                     setter = module.getClass().getMethod(method.getName(), method.getParameterTypes());
                 } catch (final NoSuchMethodException e) {
-                    throw new RuntimeException("No such method on " + moduleIdentifier, e);
+                    throw new RuntimeException("No such method on " + modId, e);
                 }
                 RequireInterface ifc = AttributeHolder.findRequireInterfaceAnnotation(setter, jmxInterfaces);
                 String description = null;