diff --git a/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt b/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt index e12a5c82976..0641d8f3c4e 100644 --- a/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt +++ b/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt @@ -8,7 +8,7 @@ fun test() { val a : java.util.Collection? = java.util.Collections.emptyList() } -fun test(a : java.lang.Comparable) { +fun test(a : java.lang.Comparable) { } diff --git a/compiler/testData/diagnostics/tests/ResolveToJava.kt b/compiler/testData/diagnostics/tests/ResolveToJava.kt index c6ddc4523f5..08bc4f37305 100644 --- a/compiler/testData/diagnostics/tests/ResolveToJava.kt +++ b/compiler/testData/diagnostics/tests/ResolveToJava.kt @@ -5,14 +5,14 @@ import java.util.* import utils.* import java.io.PrintStream -import java.lang.Comparable as Com +import java.lang.Comparable as Com val l : List = ArrayList() fun test(l : java.util.List) { val x : java.List val y : java.util.List - val b : java.lang.Object + val b : java.lang.Object val a : util.List val z : java.utils.List @@ -29,7 +29,7 @@ fun test(l : java.util.List) { List - val o = "sdf" as Object + val o = "sdf" as Object try { // ... @@ -40,9 +40,9 @@ fun test(l : java.util.List) { PrintStream("sdf") - val c : Com? = null + val c : Com? = null - c : java.lang.Comparable? + c : java.lang.Comparable? // Collections.sort(ArrayList()) xxx.Class() diff --git a/compiler/testData/diagnostics/tests/inference/mostSpecificAfterInference.kt b/compiler/testData/diagnostics/tests/inference/mostSpecificAfterInference.kt index c1d36817722..dc6c18cd624 100644 --- a/compiler/testData/diagnostics/tests/inference/mostSpecificAfterInference.kt +++ b/compiler/testData/diagnostics/tests/inference/mostSpecificAfterInference.kt @@ -4,7 +4,7 @@ package i import java.util.* fun Collection.map1(f : (T) -> R) : List {} -fun java.lang.Iterable.map1(f : (T) -> R) : List {} +fun java.lang.Iterable.map1(f : (T) -> R) : List {} fun test(list: List) { val res = list.map1 { it } @@ -13,7 +13,7 @@ fun test(list: List) { } fun Collection.foo() {} -fun java.lang.Iterable.foo() {} +fun java.lang.Iterable.foo() {} fun test1(list: List) { val res = list.foo() diff --git a/compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/kt1778.kt b/compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/kt1778.kt index b4c46e0b96e..d879d6efb77 100644 --- a/compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/kt1778.kt +++ b/compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/kt1778.kt @@ -3,7 +3,7 @@ package kt1778 fun main(args : Array) { val x = args[0]: Any - if(x is java.lang.CharSequence) { + if(x is java.lang.CharSequence) { if ("a" == x) x.length() else x.length() // OK if ("a" == x || "b" == x) x.length() else x.length() // <– THEN ERROR if ("a" == x && "a" == x) x.length() else x.length() // <– ELSE ERROR diff --git a/compiler/testData/diagnostics/tests/regressions/Jet72.kt b/compiler/testData/diagnostics/tests/regressions/Jet72.kt index d4b9a34d571..b4d6bd6773b 100644 --- a/compiler/testData/diagnostics/tests/regressions/Jet72.kt +++ b/compiler/testData/diagnostics/tests/regressions/Jet72.kt @@ -2,16 +2,16 @@ import java.util.ArrayList -abstract class Item(val room: Object) { +abstract class Item(val room: Object) { abstract val name : String } val items: ArrayList = ArrayList() -fun test(room : Object) { +fun test(room : Object) { for(val item: Item? in items) { if (item?.room === room) { System.out.println("You see " + item?.name) } } -} +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/regressions/kt498.kt b/compiler/testData/diagnostics/tests/regressions/kt498.kt index e5f2d8799c3..5505b664498 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt498.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt498.kt @@ -3,5 +3,5 @@ class IdUnavailableException() : Exception() {} fun T.getJavaClass() : Class { - return ((this as Object).getClass()) as Class // Some error here, because of Exception() used above. ?!!! -} + return ((this as Object).getClass()) as Class // Some error here, because of Exception() used above. ?!!! +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/regressions/kt716.kt b/compiler/testData/diagnostics/tests/regressions/kt716.kt index 38c320eded1..0c00d73b492 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt716.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt716.kt @@ -5,7 +5,7 @@ class TypeInfo fun typeinfo() : TypeInfo = null as TypeInfo fun TypeInfo.getJavaClass() : java.lang.Class { - val t : java.lang.Object = this as java.lang.Object + val t : java.lang.Object = this as java.lang.Object return t.getClass() as java.lang.Class // inferred type is Object but Serializable was expected } @@ -13,4 +13,4 @@ fun getJavaClass() = typeinfo().getJavaClass() fun main(args : Array) { System.out.println(getJavaClass()) -} +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/scopes/visibility2.kt b/compiler/testData/diagnostics/tests/scopes/visibility2.kt index 58a9fe1a380..b14c4f8be11 100644 --- a/compiler/testData/diagnostics/tests/scopes/visibility2.kt +++ b/compiler/testData/diagnostics/tests/scopes/visibility2.kt @@ -42,6 +42,6 @@ class Q { } //check that 'toString' can be invoked without specifying return type -class NewClass : java.util.ArrayList() { +class NewClass : java.util.ArrayList<Integer>() { public override fun toString() = "a" } \ No newline at end of file diff --git a/idea/testData/checker/ResolveToJava.jet b/idea/testData/checker/ResolveToJava.jet index fa907ac16e5..63b6235011b 100644 --- a/idea/testData/checker/ResolveToJava.jet +++ b/idea/testData/checker/ResolveToJava.jet @@ -3,14 +3,14 @@ import java.util.* import utils.* import java.io.PrintStream -import java.lang.Comparable as Com +import java.lang.Comparable as Com val l : List = ArrayList() fun test(l : java.util.List) { val x : java.List val y : java.util.List - val b : java.lang.Object + val b : java.lang.Object val a : util.List val z : java.utils.List @@ -27,7 +27,7 @@ fun test(l : java.util.List) { List - val o = "sdf" as Object + val o = "sdf" as Object try { // ... @@ -38,9 +38,9 @@ fun test(l : java.util.List) { PrintStream("sdf") - val c : Com? = null + val c : Com? = null - c : java.lang.Comparable? + c : java.lang.Comparable? // Collections.sort(ArrayList()) } diff --git a/idea/testData/checker/regression/Jet72.jet b/idea/testData/checker/regression/Jet72.jet index c5c6016b036..183f0c26bd7 100644 --- a/idea/testData/checker/regression/Jet72.jet +++ b/idea/testData/checker/regression/Jet72.jet @@ -2,13 +2,13 @@ import java.util.ArrayList -abstract class Item(val room: Object) { +abstract class Item(val room: Object) { abstract val name : String } val items: ArrayList = ArrayList() -fun test(room : Object) { +fun test(room : Object) { for(val item: Item in items) { if (item.room === room) { System.out.println("You see " + item.name)