In generated types getter will no longer be marked @Nullable annotation
for non List and Map types.
Jira: MDSAL-603
Change-Id: I2ad00e625f652399e184fca1a7a00d3ed36d3dff
Signed-off-by: Iaroslav <iaroslav.kholiavko@pantheon.tech>
'''
def private String nullableType(Type type) {
'''
def private String nullableType(Type type) {
+ if (type.isObject && (Types.isMapType(type) || Types.isListType(type))) {
return type.importedNullable
}
return type.importedName
return type.importedNullable
}
return type.importedName