Add Types.primitiveVoidType() 46/70146/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 26 Mar 2018 22:36:19 +0000 (00:36 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 27 Mar 2018 16:52:11 +0000 (18:52 +0200)
commit80dbabc1255548ed9f34311a640cff9e7a2b5495
tree0ee7c0b0889e619e34daa2419124c7420bc31ff3
parent398c503a7a374d3bf766980ed5ea675a3e5c68ed
Add Types.primitiveVoidType()

There is a difference between java.lang.Void.class and void.class,
which the code generator does not reflect and works around by
squashing the types when looking up.

Fix this deficiency by introducing primitiveVoidType(), which
correctly wraps void.class.

Change-Id: Iaa5b76805d63cec2857a12733c84edaf8b61eba2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/generator/impl/AbstractTypeGenerator.java
binding/mdsal-binding-generator-util/src/main/java/org/opendaylight/mdsal/binding/model/util/Types.java