Removed obsolete tests

This commit is contained in:
Michael Bogdanov
2015-12-28 13:28:22 +03:00
parent e671d05105
commit bb63bcd520
41 changed files with 0 additions and 625 deletions
@@ -1 +0,0 @@
org.jetbrains.kotlin.idea.inspections.DeprecatedUsageOfStaticFieldInspection
@@ -1,22 +0,0 @@
package a
class A
class Cl {
companion object {
@JvmField val property1 = A()
const val property2 = 2
}
}
interface Int {
companion object {
val property1 = A()
const val property2 = 2
}
}
object Obj {
@JvmField val property1 = A()
const val property2 = 2
}
@@ -1,19 +0,0 @@
// "Cleanup code" "true"
import a.*;
class B {
void bar() {
Cl.property1;
Cl.property2;
Cl.property1;
Cl.property2;
Int.Companion.getProperty1();
Int.property2;
Int.Companion.getProperty1();
Int.property2;
Obj.property1;
Obj.property2;
Obj.property1;
Obj.property2;
}
}
@@ -1,19 +0,0 @@
// "Cleanup code" "true"
import a.*;
class B {
void bar() {
Cl.prope<caret>rty1;
Cl.property2;
Cl.Companion.getProperty1();
Cl.Companion.getProperty2();
Int.property1;
Int.property2;
Int.Companion.getProperty1();
Int.Companion.getProperty2();
Obj.property1;
Obj.property2;
Obj.INSTANCE.getProperty1();
Obj.INSTANCE.getProperty2();
}
}
@@ -1,22 +0,0 @@
package a
class A
class Cl {
companion object {
val property1 = A()
val property2 = 2
}
}
interface Int {
companion object {
val property1 = A()
val property2 = 2
}
}
object Obj {
val property1 = A()
val property2 = 2
}
@@ -1,7 +0,0 @@
package a
class A {
companion object Named {
const val property = 1
}
}
@@ -1,10 +0,0 @@
// "Add 'const' modifier to a property" "true"
import a.A;
class B {
void bar() {
A a = A.property;
A a2 = a.A.property;
A a3 = A.property;
}
}
@@ -1,10 +0,0 @@
// "Add 'const' modifier to a property" "true"
import a.A;
class B {
void bar() {
A a = A.pro<caret>perty;
A a2 = A.Named.getProperty();
A a3 = A.property;
}
}
@@ -1,7 +0,0 @@
package a
class A {
companion object Named {
val property = 1
}
}
@@ -1,10 +0,0 @@
// "Replace with getter invocation" "true"
import a.A;
class B {
void bar() {
A a = a.A.Named.getProperty();
A a2 = A.Named.getProperty();
A a3 = A.property;
}
}
@@ -1,10 +0,0 @@
// "Replace with getter invocation" "true"
import a.A;
class B {
void bar() {
A a = A.pro<caret>perty;
A a2 = A.Named.getProperty();
A a3 = A.property;
}
}
@@ -1,7 +0,0 @@
package a
class A {
companion object Named {
val property = A()
}
}
@@ -1,7 +0,0 @@
package a
class A {
companion object {
@JvmField val property = A()
}
}
@@ -1,10 +0,0 @@
// "Annotate property with @JvmField" "true"
import a.A;
class B {
void bar() {
A a = A.property;
A a2 = a.A.property;
A a3 = A.property;
}
}
@@ -1,10 +0,0 @@
// "Annotate property with @JvmField" "true"
import a.A;
class B {
void bar() {
A a = A.pro<caret>perty;
A a2 = A.Companion.getProperty();
A a3 = A.property;
}
}
@@ -1,7 +0,0 @@
package a
class A {
companion object {
val property = A()
}
}
@@ -1,7 +0,0 @@
package a
interface A {
companion object Named {
const val property = 1
}
}
@@ -1,10 +0,0 @@
// "Add 'const' modifier to a property" "true"
import a.A;
class B {
void bar() {
A a = A.property;
A a2 = a.A.property;
A a3 = A.property;
}
}
@@ -1,10 +0,0 @@
// "Add 'const' modifier to a property" "true"
import a.A;
class B {
void bar() {
A a = A.prop<caret>erty;
A a2 = A.Named.getProperty();
A a3 = A.property;
}
}
@@ -1,7 +0,0 @@
package a
interface A {
companion object Named {
val property = 1
}
}
@@ -1,10 +0,0 @@
// "Replace with getter invocation" "true"
import a.A;
class B {
void bar() {
A a = a.A.Companion.getProperty();
A a2 = A.Companion.getProperty();
A a3 = A.property;
}
}
@@ -1,10 +0,0 @@
// "Replace with getter invocation" "true"
import a.A;
class B {
void bar() {
A a = A.prop<caret>erty;
A a2 = A.Companion.getProperty();
A a3 = A.property;
}
}
@@ -1,7 +0,0 @@
package a
interface A {
companion object {
val property = 1
}
}
@@ -1,20 +0,0 @@
// "Annotate property with @JvmField" "false"
import a.A;
class B {
void bar() {
A a = A.prop<caret>erty;
A a2 = A.Named.getProperty();
A a3 = A.property;
}
}
// ACTION: Add 'const' modifier to a property
// ACTION: Add static import for 'a.A.property'
// ACTION: Annotate 'property' as @Deprecated
// ACTION: Annotate 'property' as @NotNull
// ACTION: Annotate 'property' as @Nullable
// ACTION: Change variable 'a' type to 'int'
// ACTION: Migrate 'a' type to 'int'
// ACTION: Replace with getter invocation
// ACTION: Split into declaration and assignment
@@ -1,7 +0,0 @@
package a
interface A {
companion object Named {
val property = 1
}
}
@@ -1,5 +0,0 @@
package a
object Obj {
const val property = 1
}
@@ -1,11 +0,0 @@
// "Add 'const' modifier to a property" "true"
import a.Obj;
import a.A;
class B {
void bar() {
A a = Obj.property;
A a2 = a.Obj.property;
A a3 = Obj.property;
}
}
@@ -1,11 +0,0 @@
// "Add 'const' modifier to a property" "true"
import a.Obj;
import a.A;
class B {
void bar() {
A a = Obj.pro<caret>perty;
A a2 = Obj.INSTANCE.getProperty();
A a3 = Obj.property;
}
}
@@ -1,5 +0,0 @@
package a
object Obj {
val property = 1
}
@@ -1,16 +0,0 @@
// "Add 'const' modifier to a property" "false"
import a.Obj;
import a.A;
class B {
void bar() {
A a = Obj.pro<caret>perty;
Obj.INSTANCE.getProperty();
}
}
// ACTION: Annotate 'property' as @Deprecated
// ACTION: Add static import for 'a.Obj.property'
// ACTION: Annotate property with @JvmField
// ACTION: Split into declaration and assignment
// ACTION: Replace with getter invocation
@@ -1,7 +0,0 @@
package a
object Obj {
val property = A()
}
class A
@@ -1,11 +0,0 @@
// "Replace with getter invocation" "true"
import a.Obj;
import a.A;
class B {
void bar() {
A a = a.Obj.INSTANCE.getProperty();
A a2 = Obj.getProperty();
A a3 = Obj.property;
}
}
@@ -1,11 +0,0 @@
// "Replace with getter invocation" "true"
import a.Obj;
import a.A;
class B {
void bar() {
A a = Obj.pro<caret>perty;
A a2 = Obj.getProperty();
A a3 = Obj.property;
}
}
@@ -1,7 +0,0 @@
package a
object Obj {
val property = A()
}
class A
@@ -1,7 +0,0 @@
package a
object Obj {
@JvmField val property = A()
}
class A
@@ -1,11 +0,0 @@
// "Annotate property with @JvmField" "true"
import a.Obj;
import a.A;
class B {
void bar() {
A a = Obj.property;
A a2 = a.Obj.property;
A a3 = Obj.property;
}
}
@@ -1,11 +0,0 @@
// "Annotate property with @JvmField" "true"
import a.Obj;
import a.A;
class B {
void bar() {
A a = Obj.pro<caret>perty;
A a2 = Obj.getProperty();
A a3 = Obj.property;
}
}
@@ -1,7 +0,0 @@
package a
object Obj {
val property = A()
}
class A