KotlinInternalInJavaInspection: fix false positive for java test module
#KT-17659 Fixed
This commit is contained in:
idea/testData/multiFileInspections/kotlinInternalInJavaTest/before/testProject/main/kotlin/Shadow.kt
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package pack_one.java_package;
|
||||
|
||||
internal class Foo {
|
||||
fun bar() = "bar"
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package pack_one.java_package;
|
||||
|
||||
public class Internal {
|
||||
public static void main(String[] args) {
|
||||
Foo foo = new Foo();
|
||||
foo.bar();
|
||||
}
|
||||
}
|
||||
Vendored
+12
@@ -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>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"inspectionClass": "org.jetbrains.kotlin.idea.inspections.KotlinInternalInJavaInspection",
|
||||
"isMultiModule": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user