Do not force new line in body for empty functions and function expressions (KT-10828)

#KT-10828 Fixed
This commit is contained in:
Nikolay Krasko
2016-12-06 16:39:17 +03:00
committed by Nikolay Krasko
parent 268d55104c
commit 2841931ffa
130 changed files with 334 additions and 575 deletions
+3 -8
View File
@@ -1,10 +1,5 @@
internal class T {
fun main() {
}
fun i(): Int {
}
fun s(): String {
}
fun main() {}
fun i(): Int {}
fun s(): String {}
}
+2 -5
View File
@@ -5,11 +5,8 @@ package demo
import java.util.HashMap
internal class Test {
constructor() {
}
constructor(s: String) {
}
constructor() {}
constructor(s: String) {}
}
internal class User {
+2 -3
View File
@@ -5,6 +5,5 @@ internal open class Base {
}
internal class Derived : Base() {
fun foo() {
}
}
fun foo() {}
}
+1 -2
View File
@@ -1,4 +1,3 @@
class MyClass {
private fun init(arg1: Int, arg2: Int, arg3: Int) {
}
private fun init(arg1: Int, arg2: Int, arg3: Int) {}
}
+3 -6
View File
@@ -1,9 +1,6 @@
internal object Util {
fun util1() {
}
fun util2() {
}
fun util1() {}
fun util2() {}
val CONSTANT = 10
}
}
+2 -5
View File
@@ -1,10 +1,7 @@
internal object Util {
fun util1() {
}
fun util2() {
}
fun util1() {}
fun util2() {}
val CONSTANT = 10
}
+2 -5
View File
@@ -1,9 +1,6 @@
internal object Util {
fun util1() {
}
fun util2() {
}
fun util1() {}
fun util2() {}
val CONSTANT = 10
}