BUG-865: Do not use QName.cachedReference() 33/40333/3
authorRobert Varga <rovarga@cisco.com>
Tue, 14 Jun 2016 23:02:09 +0000 (01:02 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 15 Jun 2016 11:07:00 +0000 (13:07 +0200)
commitc7ad3e775c87dd5edb1910bac6e6bb2aa368d513
treece3a6ba64470520b32a9bd30488b69f77029faf9
parenta90cf823b75109338d980cc367234da10c35f341
BUG-865: Do not use QName.cachedReference()

QName.intern() is the modernized method. Also use it for all constants,
allowing greater reuse inside the JVM.

Also create NodeIdentifier and LeafNode constants for things that are
invariant, improving GC behavior.

Finally import YangInstanceIdentifer.{NodeIdentifier,PathArg} to make
the code more readable.

Change-Id: Id8587407dfbf8746a369fadb23102357082e7535
Signed-off-by: Robert Varga <rovarga@cisco.com>
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/schema/NetconfRemoteSchemaYangSourceProvider.java
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/util/NetconfMessageTransformUtil.java