config-manager: final parameters
[controller.git] / opendaylight / config / config-manager / src / main / java / org / opendaylight / controller / config / manager / impl / dependencyresolver / DestroyedModule.java
index dae6cb27e4b9777e77497a805565a5c57284791c..d449e28dfe9b8a1268dfd40240932e7df6018b03 100644 (file)
@@ -33,9 +33,9 @@ public class DestroyedModule implements AutoCloseable,
     private final int orderingIdx;
     private RootRuntimeBeanRegistratorImpl runtimeBeanRegistrator;
 
-    public DestroyedModule(ModuleIdentifier identifier, AutoCloseable instance,
-                           ModuleJMXRegistrator oldJMXRegistrator,
-                           OsgiRegistration osgiRegistration, int orderingIdx,
+    public DestroyedModule(final ModuleIdentifier identifier, final AutoCloseable instance,
+                           final ModuleJMXRegistrator oldJMXRegistrator,
+                           final OsgiRegistration osgiRegistration, final int orderingIdx,
                            final RootRuntimeBeanRegistratorImpl runtimeBeanRegistrator) {
         this.identifier = identifier;
         this.instance = instance;
@@ -50,30 +50,30 @@ public class DestroyedModule implements AutoCloseable,
         LOG.trace("Destroying {}", identifier);
         try {
             instance.close();
-        } catch (Exception e) {
+        } catch (final Exception e) {
             LOG.error("Error while closing instance of {}", identifier, e);
         }
         try {
             oldJMXRegistrator.close();
-        } catch (Exception e) {
+        } catch (final Exception e) {
             LOG.error("Error while closing jmx registrator of {}", identifier, e);
         }
         try {
             if (runtimeBeanRegistrator != null) {
                 runtimeBeanRegistrator.close();
             }
-        } catch (Exception e) {
+        } catch (final Exception e) {
             LOG.error("Error while closing runtime bean jmx registrator of {}", identifier, e);
         }
         try {
             osgiRegistration.close();
-        } catch (Exception e) {
+        } catch (final Exception e) {
             LOG.error("Error while closing osgi registration of {}", identifier, e);
         }
     }
 
     @Override
-    public int compareTo(DestroyedModule o) {
+    public int compareTo(final DestroyedModule o) {
         return Integer.compare(orderingIdx, o.orderingIdx);
     }