KotlinInternalInJavaInspection: fix false positive for java test module

#KT-17659 Fixed
This commit is contained in:
Dmitry Gridin
2019-10-25 19:37:25 +07:00
parent 865e1bf631
commit e14d589279
7 changed files with 38 additions and 2 deletions
@@ -0,0 +1,5 @@
package pack_one.java_package;
internal class Foo {
fun bar() = "bar"
}
@@ -0,0 +1,8 @@
package pack_one.java_package;
public class Internal {
public static void main(String[] args) {
Foo foo = new Foo();
foo.bar();
}
}
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/main/kotlin" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test/java" isTestSource="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
@@ -0,0 +1,2 @@
<problems>
</problems>
@@ -0,0 +1,4 @@
{
"inspectionClass": "org.jetbrains.kotlin.idea.inspections.KotlinInternalInJavaInspection",
"isMultiModule": "true"
}