Map bits type to primitive boolean 73/101673/16
authorivan.martiniak <ivan.martiniak@pantheon.tech>
Fri, 1 Jul 2022 11:31:41 +0000 (13:31 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 9 Nov 2022 22:15:07 +0000 (22:15 +0000)
commit104f5129f7fbe80378451345489e0eb8a6394a47
treeee5c4cabe8791f7cb1440466ad49281373e4593d
parenta0c657cf8121e2dc7ec54fff7ed8b9fd76452967
Map bits type to primitive boolean

The main change is in the AbstractTypeObjectGenerator.java,
returned type for bits was set to primitive boolean.
Generation of the getDefaultInstance() method in the ClassTemplate.xtend
had to be adjusted as well, as the null value obviously
does not make sense in the case of primitive type.
Related test classes had to be changed as well

JIRA: MDSAL-744
Change-Id: Ic6423f67679475fced73ea68ed4f447b241230f7
Signed-off-by: ivan.martiniak <ivan.martiniak@pantheon.tech>
binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/AbstractTypeObjectGenerator.java
binding/mdsal-binding-generator/src/test/java/org/opendaylight/mdsal/binding/generator/impl/BitAndUnionTOEnclosingTest.java
binding/mdsal-binding-generator/src/test/java/org/opendaylight/mdsal/binding/generator/impl/GenerateInnerClassForBitsAndUnionInLeavesTest.java
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/ClassTemplate.xtend
binding/mdsal-binding-java-api-generator/src/test/java/org/opendaylight/mdsal/binding/java/api/generator/TypedefCompilationTest.java