Inspectopedia Help

Java interop issues

'inline fun' extension receiver can be explicitly nullable until Kotlin 1.2   New in this release

Reports inline functions with non-nullable extension receivers which don't use the fact that extension receiver is not nullable.

'inline fun' with nullable receiver until Kotlin 1.2   New in this release

Reports potentially unsafe calls of inline functions with flexible nullable (platform type with unknown nullability) extension receivers.

Call of Java mutator method on immutable Kotlin collection   New in this release

Reports Java mutator methods calls (like fill, reverse, shuffle, sort) on an immutable Kotlin collection.

Function or property has platform type   New in this release

Reports functions and properties that have a platform type.

Inheritance of Kotlin sealed interface/class from Java   New in this release

Reports attempts to inherit from Kotlin sealed interfaces or classes in Java code.

Kotlin JVM annotation in Java   New in this release

Reports useless Kotlin JVM annotations in Java code.

Kotlin non-const property used as Java constant   New in this release

Reports Kotlin properties that are not const and used as Java annotation arguments.

Package name does not match containing directory   New in this release

Reports package directives that do not match the location of the file.

Usage of Kotlin internal declarations from Java   New in this release

Reports usages of Kotlin internal declarations in Java code that is located in a different module.

Last modified: 11 September 2024