Specialize JSONInstanceIdentifierCodec 64/84964/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 5 Oct 2019 11:16:57 +0000 (13:16 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 7 Oct 2019 10:01:47 +0000 (12:01 +0200)
commite621ba058992d6719ab2fe1199d3c853f54144d2
treef83b6cdc25b048e514f124dd4e62a5b193d0fadb
parentb73d150ceeadf3ff81bcf70c0e7d9cf2d38d6398
Specialize JSONInstanceIdentifierCodec

We do not want to force RFC7951 to instantiate the old lhotka-02
codec if we are not using it. Make JSONInstanceIdentifierCodec
an abstract class and specialize it as
Lhotka02JSONInstanceIdentifierCodec, so we have two distinct
concrete classes.

Change-Id: Icb30d97ec9134e8dc368775e48b93ef042ed9121
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit f8325877a6b29e3791b3dd945881b9cf1e648ea4)
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONCodecFactorySupplier.java
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONInstanceIdentifierCodec.java
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/Lhotka02JSONInstanceIdentifierCodec.java [new file with mode: 0644]