Do not instantiate JsonParser 56/99356/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Jan 2022 11:42:49 +0000 (12:42 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Jan 2022 11:43:40 +0000 (12:43 +0100)
commit312f89f44c345c398bb9fbdd9880b081cd705efb
tree009160f8f46d86c45757da1be6876d42c46a3747
parente201931864746dc2312aad39571bebc612686e68
Do not instantiate JsonParser

JsonParser.parse() should not be used, but rather its equivalent static
methods should be invoked. Migrate tests to do so, fixing a few warnings
in the process.

Change-Id: I6bbfad51c584a5dc0e752bcbb1ed2ec3cdff483f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
codec/yang-data-codec-gson/src/test/java/org/opendaylight/yangtools/yang/data/codec/gson/AnyXmlSupportTest.java
codec/yang-data-codec-gson/src/test/java/org/opendaylight/yangtools/yang/data/codec/gson/Bug5446Test.java
codec/yang-data-codec-gson/src/test/java/org/opendaylight/yangtools/yang/data/codec/gson/Bug7246Test.java
codec/yang-data-codec-gson/src/test/java/org/opendaylight/yangtools/yang/data/codec/gson/TestUtils.java