/*
 * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.yangtools.yang.data.api.schema.tree;

import java.util.Optional;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;

/**
 * A tree node which has references to its child leaves. This are typically internal non-data leaves, such as
 * containers, lists, etc.
 *
 * @param <C> Final node type
 */
// FIXME: 3.0.0: Use @NonNullByDefault
public interface StoreTreeNode<C extends StoreTreeNode<C>> {
    /**
     * Returns a direct child of the node.
     *
     * @param child Identifier of child
     * @return Optional with node if the child is existing, {@link Optional#empty()} otherwise.
     */
    // FIXME: 3.0.0: document NullPointerException being thrown
    Optional<C> getChild(PathArgument child);
}

@@ -391,16 +391,59 @@
 tional;%0A
+import org.eclipse.jdt.annotation.NonNull;%0A
 import o
@@ -583,18 +583,19 @@
 aves. Th
-is
+ese
  are typ
@@ -703,47 +703,8 @@
  */%0A
-// FIXME: 3.0.0: Use @NonNullByDefault%0A
 publ
@@ -954,16 +954,79 @@
 erwise.%0A
+     * @throws NullPointerException when %7B@code child%7D is null%0A
      */%0A
@@ -1043,61 +1043,49 @@
 ME: 
-3
+4
 .0.0: 
-document NullPointerException being thrown%0A   
+Optional%3C? extends C%3E%0A    @NonNull
  Opt

Document StoreTreeNode.getChild() nullness