Do not write empty string in EmptyXmlCodec 83/79583/5
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 16 Jan 2019 21:38:04 +0000 (22:38 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 16 Jan 2019 23:16:03 +0000 (23:16 +0000)
commit26e2821d5765b202aeca411cc00ed615b4377ae7
tree9017e3ab209bbbb5d1e0b9116ddfd0bbac9cba7d
parent127cfbef06dec06721efc4fafe2e9ab551c644e6
Do not write empty string in EmptyXmlCodec

Emitting an empty string does nothing but churn writer state,
so speed up EmptyXmlCodec by not touching the writer.

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