This private utility method does not touch the object, hence make it
static.
Change-Id: Ifc50b713792cd3e8096173dbdaf3cdb41b9f42e2
Signed-off-by: Robert Varga <rovarga@cisco.com>
return oldMeta;
}
- private static final TreeNode childMeta(final TreeNode parent, final PathArgument id) {
+ private static TreeNode childMeta(final TreeNode parent, final PathArgument id) {
if (parent != null) {
return parent.getChild(id).orNull();
} else {
return Verify.verifyNotNull(mod.getModificationType(), "Node %s does not have resolved modification type", mod);
}
- private Optional<NormalizedNode<?, ?>> optionalData(final TreeNode meta) {
+ private static Optional<NormalizedNode<?, ?>> optionalData(final TreeNode meta) {
if (meta != null) {
return Optional.<NormalizedNode<?,?>>of(meta.getData());
} else {