summaryrefslogtreecommitdiffstats
path: root/infra/test-utils/test-tools/src
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-04-10 07:10:53 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-04-10 07:10:59 +0200
commit7cde100cc6e732b0ff335e6f3de66d97544d06da (patch)
treeb423731d3041430d21419c61d68d565d08fd21e1 /infra/test-utils/test-tools/src
parent023dc70e4c10ccba8b4676687d6629a93aa9f058 (diff)
Fix various Sonar warnings
Change-Id: I0883042a80525b72f33e66fdb0d5b9e600dcc713 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/test-utils/test-tools/src')
-rw-r--r--infra/test-utils/test-tools/src/main/java/io/fd/honeycomb/test/tools/YangDataProcessorRegistry.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/infra/test-utils/test-tools/src/main/java/io/fd/honeycomb/test/tools/YangDataProcessorRegistry.java b/infra/test-utils/test-tools/src/main/java/io/fd/honeycomb/test/tools/YangDataProcessorRegistry.java
index d23cd59c1..b5057a527 100644
--- a/infra/test-utils/test-tools/src/main/java/io/fd/honeycomb/test/tools/YangDataProcessorRegistry.java
+++ b/infra/test-utils/test-tools/src/main/java/io/fd/honeycomb/test/tools/YangDataProcessorRegistry.java
@@ -16,17 +16,16 @@
package io.fd.honeycomb.test.tools;
-import org.opendaylight.controller.md.sal.binding.impl.BindingToNormalizedNodeCodec;
-import org.opendaylight.yangtools.yang.binding.DataObject;
-import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+import static com.google.common.base.Preconditions.checkState;
-import javax.annotation.Nonnull;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
-
-import static com.google.common.base.Preconditions.checkState;
+import javax.annotation.Nonnull;
+import org.opendaylight.controller.md.sal.binding.impl.BindingToNormalizedNodeCodec;
+import org.opendaylight.yangtools.yang.binding.DataObject;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
+import org.opendaylight.yangtools.yang.model.api.SchemaContext;
/**
* Process yang data from json to BA Objects
@@ -56,7 +55,7 @@ final class YangDataProcessorRegistry {
private YangDataProcessor pickProcessor(final YangInstanceIdentifier yangInstanceIdentifier) {
final List<YangDataProcessor> eligibleProcessors = processors.stream()
- .filter(processors -> processors.canProcess(yangInstanceIdentifier))
+ .filter(processor -> processor.canProcess(yangInstanceIdentifier))
.collect(Collectors.toList());
// canProcess should be exclusive for node type, but just in case