Remove yang-test
[controller.git] / opendaylight / config / config-manager / src / test / java / org / opendaylight / controller / config / manager / testingservices / parallelapsp / TestingParallelAPSPModuleFactory.java
index 89b70e3e7ab4fca00351a71dbcd5f75efcd87041..4ce5dc91dd687e77d1df5d1956f8467a69746214 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,
@@ -32,25 +32,23 @@ public class TestingParallelAPSPModuleFactory implements ModuleFactory {
     }
 
     @Override
-    public TestingParallelAPSPModule createModule(String instanceName,
-            DependencyResolver dependencyResolver, BundleContext bundleContext) {
-        return new TestingParallelAPSPModule(new ModuleIdentifier(NAME,
-                instanceName), dependencyResolver, null, null);
+    public TestingParallelAPSPModule createModule(final String instanceName,
+            final DependencyResolver dependencyResolver, final BundleContext bundleContext) {
+        return new TestingParallelAPSPModule(new ModuleIdentifier(NAME, instanceName), dependencyResolver, null, null);
     }
 
     @Override
-    public TestingParallelAPSPModule createModule(String instanceName,
-            DependencyResolver dependencyResolver, DynamicMBeanWithInstance old, BundleContext context)
-            throws Exception {
+    public TestingParallelAPSPModule createModule(final String instanceName,
+            final DependencyResolver dependencyResolver, final DynamicMBeanWithInstance old,
+            final BundleContext context) throws Exception {
         TestingParallelAPSPImpl oldInstance;
         try {
             oldInstance = (TestingParallelAPSPImpl) old.getInstance();
-        } catch (ClassCastException e) {
+        } catch (final ClassCastException e) {
             oldInstance = null;
         }
-        TestingParallelAPSPModule result = new TestingParallelAPSPModule(
-                new ModuleIdentifier(NAME, instanceName), dependencyResolver,
-                old.getInstance(), oldInstance);
+        TestingParallelAPSPModule result = new TestingParallelAPSPModule(new ModuleIdentifier(NAME, instanceName),
+                dependencyResolver, old.getInstance(), oldInstance);
         // copy attributes
         String someParam = (String) old.getAttribute("SomeParam");
         result.setSomeParam(someParam);
@@ -61,13 +59,14 @@ public class TestingParallelAPSPModuleFactory implements ModuleFactory {
 
     @Override
     public boolean isModuleImplementingServiceInterface(
-            Class<? extends AbstractServiceInterface> serviceInterface) {
+            final Class<? extends AbstractServiceInterface> serviceInterface) {
         return false;
     }
 
     @Override
-    public Set<Module> getDefaultModules(DependencyResolverFactory dependencyResolverFactory, BundleContext context) {
-        return new HashSet<Module>();
+    public Set<Module> getDefaultModules(final DependencyResolverFactory dependencyResolverFactory,
+            final BundleContext context) {
+        return new HashSet<>();
     }
 
     @Override