method_mult avoided
This commit is contained in:
@@ -43,11 +43,8 @@ public class JavaToKotlinConverterTest extends LightDaemonAnalyzerTestCase {
|
||||
else if (javaFile.getParent().endsWith("/statement")) actual = statementToSingleLineKotlin(javaCode);
|
||||
else if (javaFile.getParent().endsWith("/statement_mult")) actual = statementToKotlin(javaCode);
|
||||
|
||||
else if (javaFile.getParent().endsWith("/method")) actual = methodToSingleLineKotlin(javaCode);
|
||||
else if (javaFile.getParent().endsWith("/method_mult")) actual = methodToKotlin(javaCode);
|
||||
|
||||
else if (javaFile.getParent().endsWith("/method")) actual = methodToKotlin(javaCode);
|
||||
else if (javaFile.getParent().endsWith("/class")) actual = classToKotlin(javaCode);
|
||||
|
||||
else if (javaFile.getParent().endsWith("/file")) actual = fileToKotlin(javaCode);
|
||||
|
||||
assert !actual.equals("");
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
fun fromArrayToCollection(a : Array<Foo?>?) : Unit { }
|
||||
fun fromArrayToCollection(a : Array<Foo?>?) : Unit {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun getT() : T? { }
|
||||
fun getT() : T? {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun main() : Unit { }
|
||||
fun main() : Unit {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun test() : Unit { }
|
||||
fun test() : Unit {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun main() : String? { }
|
||||
fun main() : String? {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun main() : Int { }
|
||||
fun main() : Int {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun main() : Boolean { }
|
||||
fun main() : Boolean {
|
||||
}
|
||||
@@ -1 +1,3 @@
|
||||
fun isTrue() : Boolean { return true }
|
||||
fun isTrue() : Boolean {
|
||||
return true
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun putU<U>(u : U?) : Unit { }
|
||||
fun putU<U>(u : U?) : Unit {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun putUVW<U, V, W>(u : U?, v : V?, w : W?) : Unit { }
|
||||
fun putUVW<U, V, W>(u : U?, v : V?, w : W?) : Unit {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
private fun test() : Unit { }
|
||||
private fun test() : Unit {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
protected fun test() : Unit { }
|
||||
protected fun test() : Unit {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
public fun test() : Unit { }
|
||||
public fun test() : Unit {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun popAll(dst : Collection<in E?>?) : Unit { }
|
||||
fun popAll(dst : Collection<in E?>?) : Unit {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun pushAll(src : Collection<out E?>?) : Unit { }
|
||||
fun pushAll(src : Collection<out E?>?) : Unit {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun wtf(w : Collection<*>?) : Unit { }
|
||||
fun wtf(w : Collection<*>?) : Unit {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun max<T : Any?, K : Node?>(coll : Collection<out T?>?) : T? where T : Comparable<in T?>?, K : Collection<in K?>? { }
|
||||
fun max<T : Any?, K : Node?>(coll : Collection<out T?>?) : T? where T : Comparable<in T?>?, K : Collection<in K?>? {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun max<T : Any?>(coll : Collection<out T?>?) : T? where T : Comparable<in T?>? { }
|
||||
fun max<T : Any?>(coll : Collection<out T?>?) : T? where T : Comparable<in T?>? {
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
fun pushAll(vararg objs : Any?) : Unit { }
|
||||
fun pushAll(vararg objs : Any?) : Unit {
|
||||
}
|
||||
Reference in New Issue
Block a user