X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fmanager%2Ftestingservices%2Fparallelapsp%2FTestingParallelAPSPModule.java;fp=opendaylight%2Fconfig%2Fconfig-manager%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fmanager%2Ftestingservices%2Fparallelapsp%2FTestingParallelAPSPModule.java;h=774ddac4e82be0a93ba8f95c7cc1a4a484cb0a32;hp=1857aaa22f70fbaa5acd7e807b8d9cefc14a1a15;hb=cbcc2b61265e903959f11d44c292771e76b3926e;hpb=e2f5a1f1f1b917620ba4ade6c024f5ee3d202036 diff --git a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/parallelapsp/TestingParallelAPSPModule.java b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/parallelapsp/TestingParallelAPSPModule.java index 1857aaa22f..774ddac4e8 100644 --- a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/parallelapsp/TestingParallelAPSPModule.java +++ b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/parallelapsp/TestingParallelAPSPModule.java @@ -43,10 +43,10 @@ public class TestingParallelAPSPModule implements Module, private TestingParallelAPSPImpl instance; private String someParam; - public TestingParallelAPSPModule(ModuleIdentifier identifier, - DependencyResolver dependencyResolver, - @Nullable AutoCloseable oldCloseable, - @Nullable TestingParallelAPSPImpl oldInstance) { + public TestingParallelAPSPModule(final ModuleIdentifier identifier, + final DependencyResolver dependencyResolver, + @Nullable final AutoCloseable oldCloseable, + @Nullable final TestingParallelAPSPImpl oldInstance) { this.identifier = identifier; this.dependencyResolver = dependencyResolver; this.oldCloseable = oldCloseable; @@ -60,7 +60,7 @@ public class TestingParallelAPSPModule implements Module, @RequireInterface(TestingThreadPoolServiceInterface.class) @Override - public void setThreadPool(ObjectName threadPoolName) { + public void setThreadPool(final ObjectName threadPoolName) { this.threadPoolON = threadPoolName; } @@ -70,7 +70,7 @@ public class TestingParallelAPSPModule implements Module, } @Override - public void setSomeParam(String someParam) { + public void setSomeParam(final String someParam) { this.someParam = someParam; } @@ -98,7 +98,7 @@ public class TestingParallelAPSPModule implements Module, dependencyResolver.resolveInstance(TestingThreadPoolIfc.class, threadPoolON, threadPoolONJMXAttribute); throw new RuntimeException("fail"); - } catch (IllegalStateException e) { + } catch (final IllegalStateException e) { checkState("Commit was not triggered".equals(e.getMessage()), e.getMessage()); } @@ -107,7 +107,7 @@ public class TestingParallelAPSPModule implements Module, int threadCount; try { threadCount = (Integer)dependencyResolver.getAttribute(threadPoolON, "ThreadCount"); - } catch (Exception e) { + } catch (final Exception e) { throw new IllegalStateException(e); } checkState(threadCount > 0); @@ -135,7 +135,7 @@ public class TestingParallelAPSPModule implements Module, if (oldCloseable != null) { try { oldCloseable.close(); - } catch (Exception e) { + } catch (final Exception e) { throw new RuntimeException(e); } }