From f37b6184effa1d421c602da425903ab8d4b02ba7 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Thu, 11 May 2017 17:26:59 +0200 Subject: [PATCH] ntfbenchmark: final parameters This automatically-generated patch flags all appropriate parameters as final (including caught exceptions). Change-Id: Ia56cdba20e943ec0aac924643c564f6d7e691965 Signed-off-by: Stephen Kitt --- .../src/main/java/ntfbenchmark/impl/NtfbenchWTCListener.java | 4 ++-- .../src/main/java/ntfbenchmark/impl/NtfbenchmarkProvider.java | 4 ++-- .../yang/ntfbenchmark/impl/rev141210/NtfbenchmarkModule.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/benchmark/ntfbenchmark/src/main/java/ntfbenchmark/impl/NtfbenchWTCListener.java b/benchmark/ntfbenchmark/src/main/java/ntfbenchmark/impl/NtfbenchWTCListener.java index a9d44bffb0..1e63c4b75d 100644 --- a/benchmark/ntfbenchmark/src/main/java/ntfbenchmark/impl/NtfbenchWTCListener.java +++ b/benchmark/ntfbenchmark/src/main/java/ntfbenchmark/impl/NtfbenchWTCListener.java @@ -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()) { diff --git a/benchmark/ntfbenchmark/src/main/java/ntfbenchmark/impl/NtfbenchmarkProvider.java b/benchmark/ntfbenchmark/src/main/java/ntfbenchmark/impl/NtfbenchmarkProvider.java index c36267e4b3..c41729e45e 100644 --- a/benchmark/ntfbenchmark/src/main/java/ntfbenchmark/impl/NtfbenchmarkProvider.java +++ b/benchmark/ntfbenchmark/src/main/java/ntfbenchmark/impl/NtfbenchmarkProvider.java @@ -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; diff --git a/benchmark/ntfbenchmark/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/ntfbenchmark/impl/rev141210/NtfbenchmarkModule.java b/benchmark/ntfbenchmark/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/ntfbenchmark/impl/rev141210/NtfbenchmarkModule.java index 0b20fe5e63..d418dffabb 100644 --- a/benchmark/ntfbenchmark/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/ntfbenchmark/impl/rev141210/NtfbenchmarkModule.java +++ b/benchmark/ntfbenchmark/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/ntfbenchmark/impl/rev141210/NtfbenchmarkModule.java @@ -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); } -- 2.36.6