KT-7151 Convert 'System.out.println()' to just 'println()'

#KT-7151 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-03-29 19:03:14 +03:00
parent 39f94d7d45
commit 1465418c2b
89 changed files with 198 additions and 140 deletions
@@ -1,11 +1,11 @@
class C(arg1: Int, arg2: Int, arg3: Int) {
constructor(arg1: Int, arg2: Int) : this(arg1, arg2, 0) {
System.out.println()
println()
}
constructor(arg1: Int) : this(arg1, 0) {
System.out.println()
println()
}
}
@@ -36,7 +36,7 @@ class CustomerBuilder {
public object User {
public fun main() {
val customer = CustomerBuilder().WithFirstName("Homer").WithLastName("Simpson").Build()
System.out.println(customer.firstName)
System.out.println(customer.lastName)
println(customer.firstName)
println(customer.lastName)
}
}
@@ -1,6 +1,6 @@
class C(private val field: Int) {
init {
System.out.println(field)
println(field)
}
}
@@ -4,7 +4,7 @@ class C(p: Int) {
init {
var p = p
this.p = p
System.out.println(p++)
System.out.println(p)
println(p++)
println(p)
}
}
@@ -5,7 +5,7 @@ class C(private val arg1: Int, private val arg2: Int, private val arg3: Int) {
}
constructor(arg1: Int, arg2: Int, other: C) : this(arg1, arg2, 0) {
System.out.println(foo(1) + this.foo(2) + other.foo(3) + staticFoo(4) + C.staticFoo(5))
println(foo(1) + this.foo(2) + other.foo(3) + staticFoo(4) + C.staticFoo(5))
}
companion object {
@@ -3,11 +3,11 @@ class C {
}
constructor(arg1: Int, arg2: Int) : this(arg1, arg2, 0) {
System.out.println()
println()
}
constructor(arg: Int) {
System.out.println(arg)
println(arg)
}
}
@@ -6,7 +6,7 @@ class C(arg1: Int, arg2: Int = 0, arg3: Int = 0) {
var arg1 = arg1
var arg3 = arg3
arg1++
System.out.print(arg1 + arg2)
print(arg1 + arg2)
field = arg3
arg3++
}
@@ -1,7 +1,7 @@
class C(private val arg1: Int, private val arg2: Int, private val arg3: Int) {
constructor(arg1: Int, arg2: Int, other: C) : this(arg1, arg2, 0) {
System.out.println(this.arg1 + other.arg2)
println(this.arg1 + other.arg2)
}
}
@@ -1,7 +1,7 @@
class C() {
constructor(p: Int) : this() {
System.out.println(staticField1 + C.staticField2)
println(staticField1 + C.staticField2)
}
companion object {