BUG-865: remove use of QName.cachedReference()
[controller.git] / opendaylight / md-sal / sal-dom-spi / src / main / java / org / opendaylight / controller / md / sal / dom / broker / spi / rpc / RpcRoutingStrategy.java
index 6c8f37b66b28dcf851c68430bf6b284742eeeda2..f17de220d883c666b4a13651129c92a7058a1afa 100644 (file)
@@ -18,8 +18,8 @@ import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
 
 public abstract class RpcRoutingStrategy implements Identifiable<QName> {
 
-    private static final QName CONTEXT_REFERENCE = QName.cachedReference(QName.create("urn:opendaylight:yang:extension:yang-ext",
-            "2013-07-09", "context-reference"));
+    private static final QName CONTEXT_REFERENCE = QName.create("urn:opendaylight:yang:extension:yang-ext",
+            "2013-07-09", "context-reference").intern();
     private final QName identifier;
 
     private RpcRoutingStrategy(final QName identifier) {
@@ -126,4 +126,4 @@ public abstract class RpcRoutingStrategy implements Identifiable<QName> {
             throw new UnsupportedOperationException("Non-routed strategy does not have a context");
         }
     }
-}
\ No newline at end of file
+}