I need to disable @NonNull/@Nullable
annotations in Kotlin generated Java code because some annotation adapters (code generators) cant handle properly some annotated fields
Do you know how it could be done? Some Kotlin annotation or compilator directive
Problem: kotlin class:
open class TestModel(
var test: ByteArray = ByteArray(0)
)
generated java:
public class TestModel {
@org.jetbrains.annotations.NotNull()
private byte[] test;
@org.jetbrains.annotations.NotNull()
public final byte[] getTest() {
return null;
}
public final void setTest(@org.jetbrains.annotations.NotNull()
byte[] p0) {
}
public TestModel(@org.jetbrains.annotations.NotNull()
byte[] test) {
super();
}
public TestModel() {
super();
}
}
I want to remove : @org.jetbrains.annotations.NotNull()
annotation