Converter:
Omit Unit return type Refactor handling of Unit type: extract separate object UnitType
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import java.util.*
|
||||
public open class ForEach() {
|
||||
public open fun test() : Unit {
|
||||
public open fun test() {
|
||||
val xs = ArrayList<Any>()
|
||||
val ys = LinkedList<Any>()
|
||||
for (x in xs)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import java.util.*
|
||||
public open class ForEach() {
|
||||
public open fun test() : Unit {
|
||||
public open fun test() {
|
||||
var xs : ArrayList<Any?>? = ArrayList<Any?>()
|
||||
var ys : MutableList<Any?>? = LinkedList<Any?>()
|
||||
for (x in xs!!)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import java.util.*
|
||||
public open class Lists() {
|
||||
public open fun test() : Unit {
|
||||
public open fun test() {
|
||||
val xs = ArrayList<Any>()
|
||||
val ys = LinkedList<Any>()
|
||||
val zs = ArrayList<Any>()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import java.util.*
|
||||
public open class Lists() {
|
||||
public open fun test() : Unit {
|
||||
public open fun test() {
|
||||
var xs : MutableList<Any?>? = ArrayList<Any?>()
|
||||
var ys : MutableList<Any?>? = LinkedList<Any?>()
|
||||
var zs : ArrayList<Any?>? = ArrayList<Any?>()
|
||||
|
||||
Reference in New Issue
Block a user