Use NodeIdentifier.create() in JSON codec 23/26523/1
authorRobert Varga <rovarga@cisco.com>
Thu, 3 Sep 2015 22:59:24 +0000 (00:59 +0200)
committerRobert Varga <rovarga@cisco.com>
Fri, 4 Sep 2015 14:56:20 +0000 (16:56 +0200)
commit8e3658a8bc836f0fac6dd6bf2506d7b62cf362d7
treeed1e11112e355f3ac06e8a9d90ddf64d90018435
parent564e0c467f525dfe1cf2c6e129aafbd143711f38
Use NodeIdentifier.create() in JSON codec

This patch uses a shared NodeIdentifier instance for nodes coming in
from JSON. The lookup cost is offset by memory savings coming from not
having duplicate identifiers.

Change-Id: I6478d55b9e3076c0a78fad121a232efb8678b187
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/AbstractNodeDataWithSchema.java