Refactoring: "package matching directory" is now an inspection
This commit is contained in:
-7
@@ -1,7 +0,0 @@
|
||||
package
|
||||
|
||||
class Foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
<caret>package
|
||||
|
||||
class Foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"mainFile": "source/test.kt",
|
||||
"intentionClass": "org.jetbrains.kotlin.idea.refactoring.move.changePackage.MoveFileToPackageMatchingDirectoryIntention",
|
||||
"intentionText": "Move file to source root"
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
package target
|
||||
|
||||
class Foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
<caret>package target
|
||||
|
||||
class Foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"mainFile": "source/test.kt",
|
||||
"intentionClass": "org.jetbrains.kotlin.idea.refactoring.move.changePackage.MoveFileToPackageMatchingDirectoryIntention",
|
||||
"intentionText": "Move file to 'target'"
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
package foo.bar
|
||||
|
||||
class Foo {
|
||||
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
pack<caret>age foo.bar
|
||||
|
||||
class Foo {
|
||||
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"intentionClass": "org.jetbrains.kotlin.idea.refactoring.move.changePackage.MoveFileToPackageMatchingDirectoryIntention",
|
||||
"isApplicable": "false",
|
||||
"mainFile": "foo/bar/test.kt"
|
||||
}
|
||||
Vendored
-5
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"mainFile": "in/foo/fun/test.kt",
|
||||
"intentionClass": "org.jetbrains.kotlin.idea.refactoring.move.changePackage.ChangePackageToMatchDirectoryIntention",
|
||||
"intentionText": "Change file's package to 'in.foo.fun'"
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
package `in`.foo.`fun`
|
||||
|
||||
class Foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
package in.foo.fun;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
TestKt.foo();
|
||||
}
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
package `in`.foo.`fun`
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
package in.foo.fun;
|
||||
|
||||
import static in.foo.fun.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
package `in`.foo.`fun`
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package usages;
|
||||
|
||||
import in.foo.fun.Foo;
|
||||
import in.foo.fun.TestKt;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
TestKt.foo();
|
||||
}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
package usages
|
||||
|
||||
import `in`.foo.`fun`.Foo
|
||||
import `in`.foo.`fun`.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package usages;
|
||||
|
||||
import in.foo.fun.Foo;
|
||||
import static in.foo.fun.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
package usages
|
||||
|
||||
import `in`.foo.`fun`.Foo
|
||||
import `in`.foo.`fun`.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
<caret>package bar
|
||||
|
||||
class Foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
package in.foo.fun;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new bar.Foo();
|
||||
bar.TestKt.foo();
|
||||
}
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
package `in`.foo.`fun`
|
||||
|
||||
fun test() {
|
||||
bar.Foo()
|
||||
bar.foo()
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package in.foo.fun;
|
||||
|
||||
import bar.Foo;
|
||||
import static bar.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
package `in`.foo.`fun`
|
||||
|
||||
import bar.Foo
|
||||
import bar.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
package usages;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new bar.Foo();
|
||||
bar.TestKt.foo();
|
||||
}
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
package usages
|
||||
|
||||
fun test() {
|
||||
bar.Foo()
|
||||
bar.foo()
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package usages;
|
||||
|
||||
import bar.Foo;
|
||||
import static bar.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
package usages
|
||||
|
||||
import bar.Foo
|
||||
import bar.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
idea/testData/multiFileIntentions/reconcilePackageWithDirectory/changeToDefaultPackage/after/test.kt
Vendored
-5
@@ -1,5 +0,0 @@
|
||||
class Foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
TestKt.foo();
|
||||
}
|
||||
}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
import static TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
<caret>package source
|
||||
|
||||
class Foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
class Test {
|
||||
static void test() {
|
||||
new source.Foo();
|
||||
source.TestKt.foo();
|
||||
}
|
||||
}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
fun test() {
|
||||
source.Foo()
|
||||
source.foo()
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
import source.Foo;
|
||||
import static source.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
import source.Foo
|
||||
import source.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"mainFile": "test.kt",
|
||||
"intentionClass": "org.jetbrains.kotlin.idea.refactoring.move.changePackage.ChangePackageToMatchDirectoryIntention",
|
||||
"intentionText": "Change file's package to ''"
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
package target
|
||||
|
||||
class Foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
package target;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
TestKt.foo();
|
||||
}
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
package target
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
package target;
|
||||
|
||||
import static target.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
package target
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package usages;
|
||||
|
||||
import target.Foo;
|
||||
import target.TestKt;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
TestKt.foo();
|
||||
}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
package usages
|
||||
|
||||
import target.Foo
|
||||
import target.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package usages;
|
||||
|
||||
import target.Foo;
|
||||
import static target.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
package usages
|
||||
|
||||
import target.Foo
|
||||
import target.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
<caret>package source
|
||||
|
||||
class Foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
package target;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new source.Foo();
|
||||
source.TestKt.foo();
|
||||
}
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
package target
|
||||
|
||||
fun test() {
|
||||
source.Foo()
|
||||
source.foo()
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package target;
|
||||
|
||||
import source.Foo;
|
||||
import static source.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
package target
|
||||
|
||||
import source.Foo
|
||||
import source.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
package usages;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new source.Foo();
|
||||
source.TestKt.foo();
|
||||
}
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
package usages
|
||||
|
||||
fun test() {
|
||||
source.Foo()
|
||||
source.foo()
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package usages;
|
||||
|
||||
import source.Foo;
|
||||
import static source.TestKt.foo;
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
new Foo();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
package usages
|
||||
|
||||
import source.Foo
|
||||
import source.foo
|
||||
|
||||
fun test() {
|
||||
Foo()
|
||||
foo()
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"mainFile": "target/test.kt",
|
||||
"intentionClass": "org.jetbrains.kotlin.idea.refactoring.move.changePackage.ChangePackageToMatchDirectoryIntention",
|
||||
"intentionText": "Change file's package to 'target'"
|
||||
}
|
||||
Vendored
-7
@@ -1,7 +0,0 @@
|
||||
package baz
|
||||
|
||||
import foo.Class1
|
||||
|
||||
class Class2 : Class1() {
|
||||
init { InnerClass() }
|
||||
}
|
||||
Vendored
-6
@@ -1,6 +0,0 @@
|
||||
package foo
|
||||
|
||||
open class Class1() {
|
||||
init { InnerClass() }
|
||||
open inner class InnerClass() { }
|
||||
}
|
||||
Vendored
-7
@@ -1,7 +0,0 @@
|
||||
package baz
|
||||
|
||||
import bar.Class1
|
||||
|
||||
class Class2 : Class1() {
|
||||
init { InnerClass() }
|
||||
}
|
||||
Vendored
-6
@@ -1,6 +0,0 @@
|
||||
pack<caret>age bar
|
||||
|
||||
open class Class1() {
|
||||
init { InnerClass() }
|
||||
open inner class InnerClass() { }
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"intentionClass": "org.jetbrains.kotlin.idea.refactoring.move.changePackage.ChangePackageToMatchDirectoryIntention",
|
||||
"isApplicable": "true",
|
||||
"mainFile": "foo/test.kt"
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
package foo.bar
|
||||
|
||||
class Foo {
|
||||
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
pack<caret>age foo.bar
|
||||
|
||||
class Foo {
|
||||
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"intentionClass": "org.jetbrains.kotlin.idea.refactoring.move.changePackage.ChangePackageToMatchDirectoryIntention",
|
||||
"isApplicable": "false",
|
||||
"mainFile": "foo/bar/test.kt"
|
||||
}
|
||||
Reference in New Issue
Block a user