fix(generator): remove invalid array setter with return value

This commit is contained in:
SpaiR committed 2025-01-30 13:32:48 +02:00
1 parent 74d97cdf93
commit d6d85b922d
3 files changed
+16 -17

No files matched your search

@@ -657,7 +657,6 @@ private fun createFieldSetContent(field: CtField<*>): List<String> {
setType<Nothing>(f.createTypeParam(arrayType))
setSimpleName<Nothing>("value")
})
setArrayIdx.setType<Nothing>(f.createTypeParam(arrayType))
setArrayIdx.setBody<Nothing>(f.createCodeSnippet("$PTR_JNI_THIS->${field.getCallName()}[idx] = value"))
result += setArrayIdx.prettyprint(false)