Java to Kotlin converter: no more 2 conversion modes for each test, just a few tests to test non-standard settings
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
import java.util.*
|
||||
|
||||
public class ForEach() {
|
||||
public fun test() {
|
||||
val xs = ArrayList<Any>()
|
||||
val ys = LinkedList<Any>()
|
||||
for (x in xs) {
|
||||
ys.add(x)
|
||||
}
|
||||
for (y in ys) {
|
||||
xs.add(y)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
import java.util.*
|
||||
|
||||
public open class ForEach() {
|
||||
public open fun test() {
|
||||
var xs: ArrayList<Any?>? = ArrayList<Any?>()
|
||||
var ys: MutableList<Any?>? = LinkedList<Any?>()
|
||||
for (x in xs!!) {
|
||||
ys?.add(x)
|
||||
public class ForEach() {
|
||||
public fun test() {
|
||||
val xs = ArrayList<Any>()
|
||||
val ys = LinkedList<Any>()
|
||||
for (x in xs) {
|
||||
ys.add(x)
|
||||
}
|
||||
for (y in ys!!) {
|
||||
xs?.add(y)
|
||||
for (y in ys) {
|
||||
xs.add(y)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
import java.util.*
|
||||
|
||||
public class Lists() {
|
||||
public fun test() {
|
||||
val xs = ArrayList<Any>()
|
||||
val ys = LinkedList<Any>()
|
||||
val zs = ArrayList<Any>()
|
||||
xs.add(null)
|
||||
ys.add(null)
|
||||
xs.clear()
|
||||
ys.clear()
|
||||
zs.add(null)
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
import java.util.*
|
||||
|
||||
public open class Lists() {
|
||||
public open fun test() {
|
||||
var xs: MutableList<Any?>? = ArrayList<Any?>()
|
||||
var ys: MutableList<Any?>? = LinkedList<Any?>()
|
||||
var zs: ArrayList<Any?>? = ArrayList<Any?>()
|
||||
xs?.add(null)
|
||||
ys?.add(null)
|
||||
xs?.clear()
|
||||
ys?.clear()
|
||||
zs?.add(null)
|
||||
public class Lists() {
|
||||
public fun test() {
|
||||
val xs = ArrayList<Any>()
|
||||
val ys = LinkedList<Any>()
|
||||
val zs = ArrayList<Any>()
|
||||
xs.add(null)
|
||||
ys.add(null)
|
||||
xs.clear()
|
||||
ys.clear()
|
||||
zs.add(null)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user