Back to Intellij Community

KotlinInternalInJava

plugins/kotlin/code-insight/descriptions/resources-en/inspectionDescriptions/KotlinInternalInJava.html

2025.3-rc-2370 B
Original Source

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.