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 a9d44bf..1e63c4b 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 c36267e..c41729e 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 0b20fe5..d418dff 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);
     }
 

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.