Fix checkstyle violations in sal-inmemory-datastore
[controller.git] / opendaylight / md-sal / sal-inmemory-datastore / src / main / java / org / opendaylight / controller / md / sal / dom / store / impl / jmx / InMemoryDataStoreStats.java
index cb91b4c81ac2c7bf1222678eb6f3f063bd02fd42..f4af794b4639685f64ca24d6244669c73744e57b 100644 (file)
@@ -24,14 +24,14 @@ public class InMemoryDataStoreStats implements AutoCloseable {
     private final AbstractMXBean notificationExecutorStatsBean;
     private final QueuedNotificationManagerMXBeanImpl notificationManagerStatsBean;
 
-    public InMemoryDataStoreStats(final String mBeanType, final QueuedNotificationManager<?, ?> manager) {
+    public InMemoryDataStoreStats(final String beanType, final QueuedNotificationManager<?, ?> manager) {
 
         notificationManagerStatsBean = new QueuedNotificationManagerMXBeanImpl(manager,
-                "notification-manager", mBeanType, null);
+                "notification-manager", beanType, null);
         notificationManagerStatsBean.registerMBean();
 
         notificationExecutorStatsBean = ThreadExecutorStatsMXBeanImpl.create(manager.getExecutor(),
-                "notification-executor", mBeanType, null);
+                "notification-executor", beanType, null);
         if (notificationExecutorStatsBean != null) {
             notificationExecutorStatsBean.registerMBean();
         }
@@ -43,11 +43,11 @@ public class InMemoryDataStoreStats implements AutoCloseable {
 
     @Override
     public void close() throws Exception {
-        if(notificationExecutorStatsBean != null) {
+        if (notificationExecutorStatsBean != null) {
             notificationExecutorStatsBean.unregisterMBean();
         }
 
-        if(notificationManagerStatsBean != null) {
+        if (notificationManagerStatsBean != null) {
             notificationManagerStatsBean.unregisterMBean();
         }
     }