Remove YangXPathParserFactory @ThreadSafe annotation 02/81102/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Mar 2019 16:46:28 +0000 (17:46 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 22 Mar 2019 00:10:11 +0000 (00:10 +0000)
Replace JSR305 with explicit documentation of the fact we expect
implementations to be thread-safe.

Change-Id: If04d9b930f731387c794731261e745064048db0c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-xpath-api/src/main/java/org/opendaylight/yangtools/yang/xpath/api/YangXPathParserFactory.java

index 49e29ad438d5cbc905000ad3c3818e3080f385f7..2857bafee4788056c2c0b152e63b08d3356f62b0 100644 (file)
@@ -8,16 +8,14 @@
 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.
+ * Factory for creating {@link YangXPathParser}s. Implementations of this interface are expected to be thread-safe.
  *
  * @author Robert Varga
  */
 @Beta
-@ThreadSafe
 public interface YangXPathParserFactory {
     /**
      * Return a {@link YangXPathParser} compliant with {@link YangXPathMathMode#IEEE754}.