X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fmanager%2Ftestingservices%2Fthreadpool%2FTestingFixedThreadPoolModuleFactory.java;h=e78ae980096fa5e8905e12bf0f83de330b353376;hb=refs%2Fchanges%2F25%2F56925%2F2;hp=d385a7db5a2d007bb6d4320f31d7247a4ecde1c1;hpb=660a4a4a51718896518b8c4deeeb6e0bb3637bde;p=controller.git diff --git a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/threadpool/TestingFixedThreadPoolModuleFactory.java b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/threadpool/TestingFixedThreadPoolModuleFactory.java index d385a7db5a..e78ae98009 100644 --- a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/threadpool/TestingFixedThreadPoolModuleFactory.java +++ b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/threadpool/TestingFixedThreadPoolModuleFactory.java @@ -50,7 +50,7 @@ public class TestingFixedThreadPoolModuleFactory extends AbstractTestingFixedThr try { // reconfigure existing instance oldInstance = (TestingFixedThreadPool) old.getInstance(); - } catch (ClassCastException e) { + } catch (final ClassCastException e) { // old instance will be closed, new needs to be created oldInstance = null; } @@ -69,7 +69,7 @@ public class TestingFixedThreadPoolModuleFactory extends AbstractTestingFixedThr @Override public Set getDefaultModules(final DependencyResolverFactory dependencyResolverFactory, final BundleContext bundleContext) { - return new HashSet(); + return new HashSet<>(); } @Override