Node: add javadoc @deprecated to findOrCreateChild

This commit is contained in:
Paul Campbell 2016-09-04 19:45:16 +01:00
parent 40f49fd832
commit 1da9d44a8b
2 changed files with 6 additions and 0 deletions

View file

@ -113,6 +113,9 @@ public interface Node<T> {
* @param child the child's data to search or create with * @param child the child's data to search or create with
* *
* @return the found or created child node * @return the found or created child node
*
* @deprecated use node.findChild(child).orElseGet(() ->
* node.createChild(child));
*/ */
@Deprecated @Deprecated
Node<T> findOrCreateChild(T child); Node<T> findOrCreateChild(T child);

View file

@ -191,6 +191,9 @@ class NodeItem<T> implements Node<T> {
* @param child the child's data to search or create with * @param child the child's data to search or create with
* *
* @return the found or created child node * @return the found or created child node
*
* @deprecated use node.findChild(child).orElseGet(() -> node.createChild
* (child));
*/ */
@Override @Override
@Deprecated @Deprecated