diff --git a/src/main/java/net/kemitix/node/NodeItem.java b/src/main/java/net/kemitix/node/NodeItem.java index ec71f11..899bf5c 100644 --- a/src/main/java/net/kemitix/node/NodeItem.java +++ b/src/main/java/net/kemitix/node/NodeItem.java @@ -52,7 +52,10 @@ public class NodeItem implements Node { * * @param data the data or null * @param nameSupplier the name supplier function + * + * @deprecated dynamic names don't work on immutable objects */ + @Deprecated public NodeItem( final T data, final Function, String> nameSupplier) { this(data); @@ -89,7 +92,10 @@ public class NodeItem implements Node { * @param data the data or null * @param nameSupplier the name supplier function * @param parent the parent node + * + * @deprecated dynamic names don't work on immutable objects */ + @Deprecated public NodeItem( final T data, final Function, String> nameSupplier, final Node parent) {