Fix rawtypes/hiddenField suppressions
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / rests / utils / ReadDataTransactionUtil.java
index 7d22980ffcf8fb6bdd9f5737250be2461cd9c8d4..273483f48409ef710af66209faea292d610c368d 100644 (file)
@@ -668,10 +668,10 @@ public final class ReadDataTransactionUtil {
                     ((LeafSetNode<Object>) stateDataNode).getValue(), builder);
             return builder.build();
         } else if (configDataNode instanceof LeafSetEntryNode) {
-            final NormalizedNodeBuilder<YangInstanceIdentifier.NodeWithValue, Object, LeafSetEntryNode<Object>>
-                    builder = Builders.leafSetEntryBuilder().withNodeIdentifier(((LeafSetEntryNode<?>) configDataNode)
-                    .getIdentifier()).withValue(configDataNode.getValue());
-            return builder.build();
+            return Builders.leafSetEntryBuilder()
+                    .withNodeIdentifier(((LeafSetEntryNode<?>) configDataNode).getIdentifier())
+                    .withValue(configDataNode.getValue())
+                    .build();
         } else if (configDataNode instanceof UnkeyedListNode) {
             final CollectionNodeBuilder<UnkeyedListEntryNode, UnkeyedListNode> builder = Builders
                     .unkeyedListBuilder().withNodeIdentifier(((UnkeyedListNode) configDataNode).getIdentifier());