Refactoring: "package matching directory" is now an inspection
This commit is contained in:
idea/testData/multiFileLocalInspections/reconcilePackageWithDirectory/addQuotation/addQuotation.test
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "in/foo/fun/test.kt",
|
||||
"inspectionClass": "org.jetbrains.kotlin.idea.refactoring.move.changePackage.PackageDirectoryMismatchInspection",
|
||||
"fix": "Change file's package to 'in.foo.fun'"
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package `in`.foo.`fun`
|
||||
|
||||
class Foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package in.foo.fun;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
TestKt.foo();
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package `in`.foo.`fun`
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package in.foo.fun;
|
||||
|
||||
import static in.foo.fun.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package `in`.foo.`fun`
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package usages;
|
||||
|
||||
import in.foo.fun.Foo;
|
||||
import in.foo.fun.TestKt;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
TestKt.foo();
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package usages
|
||||
|
||||
import `in`.foo.`fun`.Foo
|
||||
import `in`.foo.`fun`.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package usages;
|
||||
|
||||
import in.foo.fun.Foo;
|
||||
import static in.foo.fun.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package usages
|
||||
|
||||
import `in`.foo.`fun`.Foo
|
||||
import `in`.foo.`fun`.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<caret>package bar
|
||||
|
||||
class Foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package in.foo.fun;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new bar.Foo();
|
||||
bar.TestKt.foo();
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package `in`.foo.`fun`
|
||||
|
||||
fun test() {
|
||||
bar.Foo()
|
||||
bar.foo()
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package in.foo.fun;
|
||||
|
||||
import bar.Foo;
|
||||
import static bar.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package `in`.foo.`fun`
|
||||
|
||||
import bar.Foo
|
||||
import bar.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package usages;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new bar.Foo();
|
||||
bar.TestKt.foo();
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package usages
|
||||
|
||||
fun test() {
|
||||
bar.Foo()
|
||||
bar.foo()
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package usages;
|
||||
|
||||
import bar.Foo;
|
||||
import static bar.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package usages
|
||||
|
||||
import bar.Foo
|
||||
import bar.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
Reference in New Issue
Block a user