Support for Kotlin: API annotations concerning null values

I develop my project in Kotlin. One of the main reasons is to avoid null pointer exceptions with the help of the compiler. I am currently evaluating your Product and I see that you offer an API for Java, hence I expect that this will be compatible with Kotlin.

My Question is: Are your API’s somehow annotated so that the Kotlin-Compiler can determine wheter a parameter or a return value of a method is nullable or not?

Example: Might the return value of the method Dash Border.getDash() (Border | Aspose.PDF for Java API Reference) be null in some cases or will it always be not null? Or in in the words of Kotlin, is the return type or the method a “Dash?” or a “Dash” ?

@amarxer

We have logged an investigation ticket as PDFJAVA-38787 in our issue tracking system for your requirements. We will look into details of your concerns and will let you know as soon as the ticket is resolved. Please spare us little time.