ntfbenchmark: final parameters 05/56905/2
authorStephen Kitt <skitt@redhat.com>
Thu, 11 May 2017 15:26:59 +0000 (17:26 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 15 May 2017 11:50:29 +0000 (11:50 +0000)
This automatically-generated patch flags all appropriate parameters as
final (including caught exceptions).

Change-Id: Ia56cdba20e943ec0aac924643c564f6d7e691965
Signed-off-by: Stephen Kitt <skitt@redhat.com>
benchmark/ntfbenchmark/src/main/java/ntfbenchmark/impl/NtfbenchWTCListener.java
benchmark/ntfbenchmark/src/main/java/ntfbenchmark/impl/NtfbenchmarkProvider.java
benchmark/ntfbenchmark/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/ntfbenchmark/impl/rev141210/NtfbenchmarkModule.java

index a9d44bffb0bf48dcff803da26864861b74bda0f8..1e63c4b75d4d49a06df88e3d9a6d04d4a64d0a2b 100644 (file)
@@ -16,13 +16,13 @@ public class NtfbenchWTCListener extends NtfbenchTestListener {
     private final int expectedCount;
     private final SettableFuture<?> allDone = SettableFuture.create();
 
-    public NtfbenchWTCListener(int expectedSize, int expectedCount) {
+    public NtfbenchWTCListener(final int expectedSize, final int expectedCount) {
         super(expectedSize);
         this.expectedCount = expectedCount;
     }
 
     @Override
-    public void onNtfbench(Ntfbench notification) {
+    public void onNtfbench(final Ntfbench notification) {
         // TODO Auto-generated method stub
         super.onNtfbench(notification);
         if (expectedCount == getReceived()) {
index c36267e4b3bae8663ec67407476983b5ae4aaf85..c41729e45ea42b5dfd654b31b9c2ed59c0a7fb98 100644 (file)
@@ -39,8 +39,8 @@ public class NtfbenchmarkProvider implements BindingAwareProvider, AutoCloseable
     private NotificationPublishService publishService;
     private static final int testTimeout = 5;
 
-    public NtfbenchmarkProvider(NotificationService listenServiceDependency,
-            NotificationPublishService publishServiceDependency) {
+    public NtfbenchmarkProvider(final NotificationService listenServiceDependency,
+            final NotificationPublishService publishServiceDependency) {
         LOG.debug("NtfbenchmarkProvider Constructor");
         listenService = listenServiceDependency;
         publishService = publishServiceDependency;
index 0b20fe5e6384bd78d6999f08ee11e7d97ea1377f..d418dffabbdd609776e95804537c44d91d994dd3 100644 (file)
@@ -10,11 +10,11 @@ package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ntfbenc
 import ntfbenchmark.impl.NtfbenchmarkProvider;
 
 public class NtfbenchmarkModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ntfbenchmark.impl.rev141210.AbstractNtfbenchmarkModule {
-    public NtfbenchmarkModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
+    public NtfbenchmarkModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier, final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
         super(identifier, dependencyResolver);
     }
 
-    public NtfbenchmarkModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ntfbenchmark.impl.rev141210.NtfbenchmarkModule oldModule, java.lang.AutoCloseable oldInstance) {
+    public NtfbenchmarkModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier, final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ntfbenchmark.impl.rev141210.NtfbenchmarkModule oldModule, final java.lang.AutoCloseable oldInstance) {
         super(identifier, dependencyResolver, oldModule, oldInstance);
     }