New J2K: Fix SOE in nj2k Java declarations printer

This commit is contained in:
Ilya Kirillov
2019-12-06 12:20:44 +03:00
parent 14a8d3726d
commit 7882f566be
@@ -107,8 +107,12 @@ class JavaContextDeclarationRenderer {
if (!type?.arguments.isNullOrEmpty()) { if (!type?.arguments.isNullOrEmpty()) {
append("<") append("<")
for (typeArgument in type!!.arguments) { for (typeArgument in type!!.arguments) {
if (typeArgument.isStarProjection) {
append("?")
} else {
renderType(typeArgument.type) renderType(typeArgument.type)
} }
}
append(">") append(">")
} }
} }