Use JsonWriter.nullValue() 72/111172/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 2 Apr 2024 08:29:14 +0000 (10:29 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 2 Apr 2024 08:29:14 +0000 (10:29 +0200)
commitc42dafd31ad302197718b5fde00914adbdd13fb5
tree4a13ca82f3b5ad4455d5cfce683a4aee6f1bd27d
parente6cef6ee0a9561b60924a09aac0e9d4038635c13
Use JsonWriter.nullValue()

We are passing a null String, which ends up calling to nullValue().
Short-circuit this.

Change-Id: I75423bee13cb2d73ef1b817b975a9cb155721c02
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
codec/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/EmptyJSONCodec.java