Remove misleading comment 36/81436/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 8 Apr 2019 07:32:09 +0000 (09:32 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 8 Apr 2019 07:32:09 +0000 (09:32 +0200)
The comment about .get() being safe is not relevant, remove it.

Change-Id: I92ed59e6ef72968ed7cfbdc1da0e22817431483c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/AutomaticLifecycleMixin.java

index c2705ec5678d1d73e49f12c4a32370423c6d85d8..b1bf4bb37b8583b67a95e299552f1d4bb3e82443 100644 (file)
@@ -46,9 +46,6 @@ final class AutomaticLifecycleMixin {
     static Optional<TreeNode> apply(final Apply delegate, final ApplyWrite writeDelegate,
             final NormalizedNode<?, ?> emptyNode, final ModifiedNode modification, final Optional<TreeNode> storeMeta,
             final Version version) {
-        // The only way a tree node can disappear is through delete (which we handle here explicitly) or through
-        // actions of disappearResult(). It is therefore safe to perform Optional.get() on the results of
-        // delegate.apply()
         final Optional<TreeNode> ret;
         if (modification.getOperation() == LogicalOperation.DELETE) {
             if (modification.getChildren().isEmpty()) {