Refactoring: "package matching directory" is now an inspection

This commit is contained in:
Mikhail Glukhikh
2017-12-21 14:12:54 +03:00
parent 3f1a3dfeb2
commit 5affb9a25c
93 changed files with 343 additions and 294 deletions
@@ -1,8 +0,0 @@
// File: bar/foo/test.kt
<spot>package bar.foo</spot>
class MyClass: OtherClass {
fun myFun() {
}
}
@@ -1,10 +0,0 @@
// File: bar/foo/test.kt
<spot>package foo.bar</spot>
import bar.foo.OtherClass
class MyClass: OtherClass {
fun myFun() {
}
}
@@ -1,6 +0,0 @@
<html>
<body>
This intention changes file's package directive so that it matches containing directory.
All import directives and usages are updated accordingly
</body>
</html>
@@ -1,10 +0,0 @@
// File: foo/bar/test.kt
<spot>package foo.bar</spot>
import bar.foo.OtherClass
class MyClass: OtherClass {
fun myFun() {
}
}
@@ -1,10 +0,0 @@
// File: bar/foo/test.kt
<spot>package foo.bar</spot>
import bar.foo.OtherClass
class MyClass: OtherClass {
fun myFun() {
}
}
@@ -1,5 +0,0 @@
<html>
<body>
This intention moves file to the directory matching its package directive.
</body>
</html>