KT-4727 J2K: Convert Java code copied from browser or other sources

#KT-4727 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-05-05 18:41:49 +03:00
parent 4cbb098671
commit cca3237e46
40 changed files with 655 additions and 68 deletions
@@ -0,0 +1,14 @@
package to
import java.io.File
import java.util.ArrayList
internal class JavaClass {
fun foo(file: File?, target: MutableList<String>?) {
val list = ArrayList<String>()
if (file != null) {
list.add(file.name)
}
target?.addAll(list)
}
}