Specialize JSONInstanceIdentifierCodec 21/84921/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 5 Oct 2019 11:16:57 +0000 (13:16 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 5 Oct 2019 11:16:57 +0000 (13:16 +0200)
commitf8325877a6b29e3791b3dd945881b9cf1e648ea4
tree37f0e81a4fa5ed8d10fae66ef4378f15e7894800
parent4cdb83a8e13ad8673d01ce5c731bf6cf98ff7a3f
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>
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]