Java to Kotlin converter: do not generate redundant parenthesis for empty constructor parameters

This commit is contained in:
Valentin Kipyatkov
2014-06-25 18:21:15 +04:00
parent 947bf3c0ed
commit 5a5e553367
207 changed files with 266 additions and 268 deletions
@@ -8,7 +8,7 @@ Anon5(1)
Anon6(array("x", "y"))
Anon7(javaClass<String>(), javaClass<StringBuilder>())
Anon8(classes = *array(javaClass<String>(), javaClass<StringBuilder>()))
class C() {
class C {
Anon5(1) deprecated("") private val field1 = 0
Anon5(1)
@@ -2,17 +2,17 @@
// !specifyLocalVariableTypeByDefault: true
package test
class Foo() {
class Foo {
fun execute() {
}
}
class Bar() {
class Bar {
var fooNotNull = Foo()
var fooNullable: Foo? = null
}
class Test() {
class Test {
public fun test(barNotNull: Bar, barNullable: Bar?) {
barNotNull.fooNotNull.execute()
barNotNull.fooNullable!!.execute()