-
In the generated Java code of the Qt classes, the annotations What determines if |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thank you for your question.
the latter needs to be done manually. So thank you for addressing this issue. In fact, |
Beta Was this translation helpful? Give feedback.
Thank you for your question.
Nullability annotations are primarily for Kotlin, as Kotlin supports nullable and non-nullable types.
T*
argument, QtJambiGenerator creates a Java@Nullable T
argument.const V&
with a copyable value typeV
the Java API is@NonNull V
. However, you can assignnull
to it in Java. Javanull
is converted in the default-constructed valueV()
.T&
argument is mapped to Java@StrictNonNull T
. This annotation causes Kotlin compiler to give a compilation error in case you assignnull
. If you sendnull
in Java, aNullPointerException
will appear.T*
pointer but don't allow a null pointer…