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%2Fscheduledthreadpool%2FTestingScheduledThreadPoolModuleFactory.java;h=7428776b76852c60d375880bb0978b97d3560394;hb=cbcc2b61265e903959f11d44c292771e76b3926e;hp=d34e73ec4723d8d1fa151b0dfe8f161ec6716b33;hpb=f281dc3e886501dc617e397c8e203732300a8f08;p=controller.git diff --git a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/scheduledthreadpool/TestingScheduledThreadPoolModuleFactory.java b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/scheduledthreadpool/TestingScheduledThreadPoolModuleFactory.java index d34e73ec47..7428776b76 100644 --- a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/scheduledthreadpool/TestingScheduledThreadPoolModuleFactory.java +++ b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/scheduledthreadpool/TestingScheduledThreadPoolModuleFactory.java @@ -53,7 +53,7 @@ public class TestingScheduledThreadPoolModuleFactory implements ModuleFactory { TestingScheduledThreadPoolImpl oldInstance; try { oldInstance = (TestingScheduledThreadPoolImpl) old.getInstance(); - } catch (ClassCastException e) {// happens after OSGi update + } catch (final ClassCastException e) {// happens after OSGi update oldInstance = null; } @@ -67,7 +67,7 @@ public class TestingScheduledThreadPoolModuleFactory implements ModuleFactory { @Override public Set getDefaultModules(final DependencyResolverFactory dependencyResolverFactory, final BundleContext bundleContext) { - return new HashSet(); + return new HashSet<>(); } @Override