BUG-650: Use lazy set in YangInstanceIdentifier/SchemaPath caches 28/11128/2
authorRobert Varga <rovarga@cisco.com>
Fri, 12 Sep 2014 22:32:04 +0000 (00:32 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Sat, 13 Sep 2014 15:06:45 +0000 (15:06 +0000)
commit77bba052b0766539d1032e12e772d728bb239651
tree3a7c8d0b8b38402f138f39a673e47a6969d7ea97
parent661f04d0cd6f554e452009e5c082a8b7b030f313
BUG-650: Use lazy set in YangInstanceIdentifier/SchemaPath caches

These cached values are just derived from immutable state, so we do not
need to force them to be visible by other threads -- they can calculate
them on their own and at some point one of the versions wins.

Change-Id: I3ecf272d151c693ef3adc519c33a065aa9dba94b
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaPath.java