Do not emit empty strings for Generated*BuilderImpl 35/27535/3
authorRobert Varga <rovarga@cisco.com>
Mon, 28 Sep 2015 13:48:50 +0000 (15:48 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 12 Oct 2015 08:54:29 +0000 (08:54 +0000)
commit93dbd7080dd38c4b176a3e3e49f913dedb16dc74
tree7f46c358c27133d8b4ae06ad5b8481b22ca1df26
parent252744b7cbc0a4efa1b1d85d54da92531146ccad
Do not emit empty strings for Generated*BuilderImpl

With a null argument, we can end up creating quite a few empty strings,
which end up being non-shared. Place an explicit check and return an
interned empty string instead.

Change-Id: I4fd9126c9502f2c80c76ca3bb38aa94a99d3ae4b
Signed-off-by: Robert Varga <rovarga@cisco.com>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/BindingGeneratorImpl.java