From 9a173eacbc49aeb428281cdca69c86c9b28337c8 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Wed, 27 Jun 2018 21:23:47 +0200 Subject: DelegatingRewriteDeleteProducer: remove useles instanceof check DataContainerNode is DataContainerChild. Change-Id: I9122f9f3c27951f2d498f714d2ea15ebc96abdf3 Signed-off-by: Marek Gradzki --- .../java/io/fd/honeycomb/data/impl/DelegatingRewriteDeleteProducer.java | 1 - 1 file changed, 1 deletion(-) 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> 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> value = DataContainerNode.class.cast(entry.getValue()).getValue(); return value.stream() -- cgit 1.2.3-korg