Inspectopedia
 
2024.3

Usage of Kotlin internal declarations from Java

Error
New
Last modified: 03 December 2024

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.