Node: add javadoc @deprecated to findOrCreateChild
This commit is contained in:
parent
40f49fd832
commit
1da9d44a8b
2 changed files with 6 additions and 0 deletions
|
@ -113,6 +113,9 @@ public interface Node<T> {
|
|||
* @param child the child's data to search or create with
|
||||
*
|
||||
* @return the found or created child node
|
||||
*
|
||||
* @deprecated use node.findChild(child).orElseGet(() ->
|
||||
* node.createChild(child));
|
||||
*/
|
||||
@Deprecated
|
||||
Node<T> findOrCreateChild(T child);
|
||||
|
|
|
@ -191,6 +191,9 @@ class NodeItem<T> implements Node<T> {
|
|||
* @param child the child's data to search or create with
|
||||
*
|
||||
* @return the found or created child node
|
||||
*
|
||||
* @deprecated use node.findChild(child).orElseGet(() -> node.createChild
|
||||
* (child));
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
|
|
Loading…
Reference in a new issue