Inspectopedia Help

Usage of Kotlin internal declarations from Java

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

The internal keyword is designed to restrict access to a class, function, or property from other modules. Due to JVM limitations, internal classes, functions, and properties can still be accessed from outside Kotlin, which may later lead to compatibility problems.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Kotlin, @snapshot@

Last modified: 13 July 2023