/*
 * Copyright (c) 2018 Pantheon Technologies, s.r.o.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.yangtools.yang.xpath.api;

import com.google.common.annotations.Beta;
import javax.annotation.concurrent.ThreadSafe;
import org.opendaylight.yangtools.yang.common.YangNamespaceContext;

/**
 * Factory for creating {@link YangXPathParser}s.
 *
 * @author Robert Varga
 */
@Beta
@ThreadSafe
public interface YangXPathParserFactory {
    /**
     * Return a {@link YangXPathParser} compliant with {@link YangXPathMathMode#IEEE754}.
     *
     * @param namespaceContext Prefix-to-namespace resolver
     * @return An XPathParser
     * @throws NullPointerException if {@code namespaceContext} is null
     */
    default YangXPathParser newParser(final YangNamespaceContext namespaceContext) {
        return newParser(namespaceContext, YangXPathMathMode.IEEE754);
    }

    /**
     * Return a {@link YangXPathParser} compliant with {@link YangXPathMathMode}.
     *
     * @param namespaceContext Prefix-to-namespace resolver
     * @param mathMode Requested XPath number compliance
     * @return An XPathParser
     * @throws NullPointerException if any argument is null
     */
    YangXPathParser newParser(YangNamespaceContext namespaceContext, YangXPathMathMode mathMode);
}

@@ -398,55 +398,8 @@
 ta;%0A
-import javax.annotation.concurrent.ThreadSafe;%0A
 impo
@@ -516,16 +516,82 @@
 arser%7Ds.
+ Implementations of this interface are expected to be thread-safe.
 %0A *%0A * @
@@ -624,20 +624,8 @@
 eta%0A
-@ThreadSafe%0A
 publ

Remove YangXPathParserFactory @ThreadSafe annotation