diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2018-06-27 21:23:47 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2018-06-27 21:23:49 +0200 |
commit | 9a173eacbc49aeb428281cdca69c86c9b28337c8 (patch) | |
tree | 278d354b51eb7fc9aeebc266e56e910cebdc05bb /infra/data-impl/src | |
parent | f601696f8e6456363a42fb9c6dbe703c4bf98dd7 (diff) |
DelegatingRewriteDeleteProducer: remove useles instanceof check
DataContainerNode is DataContainerChild.
Change-Id: I9122f9f3c27951f2d498f714d2ea15ebc96abdf3
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/data-impl/src')
-rw-r--r-- | infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/DelegatingRewriteDeleteProducer.java | 1 |
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() |