summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-06-27 21:23:47 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-06-28 06:10:21 +0000
commit44049c89f9af6b1f0aac6dbdbb196973fb1b3749 (patch)
tree2ae8b100cd4409829d861cd21795989535386491
parentd47a577e0155f4dd0aeb6f1adf7cda83ef59e8c5 (diff)
DelegatingRewriteDeleteProducer: remove useles instanceof checkstable/1804
DataContainerNode is DataContainerChild. Change-Id: I9122f9f3c27951f2d498f714d2ea15ebc96abdf3 Signed-off-by: Marek Gradzki <mgradzki@cisco.com> (cherry picked from commit 9a173eacbc49aeb428281cdca69c86c9b28337c8)
-rw-r--r--infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/DelegatingRewriteDeleteProducer.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/DelegatingRewriteDeleteProducer.java b/infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/DelegatingRewriteDeleteProducer.java
index 855485e75..6c2146208 100644
--- a/infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/DelegatingRewriteDeleteProducer.java
+++ b/infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/DelegatingRewriteDeleteProducer.java
@@ -44,7 +44,6 @@ abstract class DelegatingRewriteDeleteProducer implements RewriteDeleteProducer
@Nonnull final Map.Entry<YangInstanceIdentifier.PathArgument, DataContainerChild<? extends YangInstanceIdentifier.PathArgument, ?>> entry) {
// just delegates to lower level
checkState(entry.getValue() instanceof DataContainerNode, "Unable to extract children");
- checkState(entry.getValue() instanceof DataContainerChild, "Unable to extract identifier");
final Collection<DataContainerChild<? extends YangInstanceIdentifier.PathArgument, ?>> value =
DataContainerNode.class.cast(entry.getValue()).getValue();
return value.stream()