Kirill Rakhman said: > should we have an inspec...
# intellij
m
Kirill Rakhman said:
should we have an inspection for kotlin methods whose return type is a platform type?
One of the main reasons why my Java team switched from Eclipe to IntelliJ was external annotations. We have since externally annotated `@Nonnull`/`@Nullable` on most methods in the APIs that we use. In our own source code we only use
@Nullable
, with all packages annotated with
@ParametersAreNonnullByDefault
. Neither
@ParametersAreNonnullByDefault
nor external annotations works in the IntelliJ Kotlin plugin at the moment. For
@ParametersAreNonnullByDefault
there is youtrack issue KT-10942, but no indication when it will be implemented. For external annotations, all relevant youtrack issues I could find are marked as obsolete. These are two blocking issues before being able to start using Kotlin at my workplace.