Private method does not reverence object state, it should be static.
Change-Id: If5456a13d07396477db5d323e95a4288b51cd404
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
package org.opendaylight.yangtools.yang.parser.stmt.rfc6020;
import static org.opendaylight.yangtools.yang.parser.spi.SubstatementValidator.MAX;
package org.opendaylight.yangtools.yang.parser.stmt.rfc6020;
import static org.opendaylight.yangtools.yang.parser.spi.SubstatementValidator.MAX;
import com.google.common.base.Preconditions;
import java.util.Collection;
import java.util.regex.Pattern;
import com.google.common.base.Preconditions;
import java.util.Collection;
import java.util.regex.Pattern;
- private Mutable<?, ?, ?> getSearchRoot(Mutable<?, ?, ?> augmentContext) {
+ private static Mutable<?, ?, ?> getSearchRoot(final Mutable<?, ?, ?> augmentContext) {
Mutable<?, ?, ?> parent = augmentContext.getParentContext();
// Augment is in uses - we need to augment instantiated nodes in parent.
if(Rfc6020Mapping.USES.equals(parent.getPublicDefinition())) {
Mutable<?, ?, ?> parent = augmentContext.getParentContext();
// Augment is in uses - we need to augment instantiated nodes in parent.
if(Rfc6020Mapping.USES.equals(parent.getPublicDefinition())) {