Insert empty lines after functions and properties (KT-4002)
#KT-4002 Fixed
This commit is contained in:
@@ -8,15 +8,19 @@ class C : Base<String, C, Unit>() {
|
||||
override fun bar(value: () -> Unit): (String) -> Unit {
|
||||
<selection><caret>return super<Base>.bar(value)</selection>
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
return super<Base>.equals(other)
|
||||
}
|
||||
|
||||
override fun foo(value: C): C {
|
||||
return super<Base>.foo(value)
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return super<Base>.hashCode()
|
||||
}
|
||||
|
||||
override val method: (String?) -> String = ?
|
||||
override fun toString(): String {
|
||||
return super<Base>.toString()
|
||||
|
||||
@@ -7,15 +7,19 @@ class C(t :T) : T by t {
|
||||
override fun bar() {
|
||||
<selection><caret>throw UnsupportedOperationException()</selection>
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
return super<T>.equals(other)
|
||||
}
|
||||
|
||||
override fun foo() {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return super<T>.hashCode()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return super<T>.toString()
|
||||
}
|
||||
|
||||
@@ -10,9 +10,11 @@ class SomeOther<S> : Some<S> {
|
||||
override fun someFoo() {
|
||||
<selection><caret>throw UnsupportedOperationException()</selection>
|
||||
}
|
||||
|
||||
override fun someGenericFoo(): S {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override fun someOtherFoo(): Int {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
@@ -14,20 +14,25 @@ class C : A(), B {
|
||||
override fun equals(other: Any?): Boolean {
|
||||
<selection><caret>return super<A>.equals(other)</selection>
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return super<A>.hashCode()
|
||||
}
|
||||
|
||||
override fun internalFun() {
|
||||
super<A>.internalFun()
|
||||
}
|
||||
|
||||
override val internalProperty: Int = 0
|
||||
override fun protectedFun() {
|
||||
super<A>.protectedFun()
|
||||
}
|
||||
|
||||
override val protectedProperty: Int = 0
|
||||
override fun publicFun() {
|
||||
super<A>.publicFun()
|
||||
}
|
||||
|
||||
override val publicProperty: Int = 0
|
||||
override fun toString(): String {
|
||||
return super<A>.toString()
|
||||
|
||||
@@ -7,15 +7,19 @@ class C : A {
|
||||
override fun bar(): String {
|
||||
<selection><caret>return super<A>.bar()</selection>
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
return super<A>.equals(other)
|
||||
}
|
||||
|
||||
override fun foo(value: String): Int {
|
||||
return super<A>.foo(value)
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return super<A>.hashCode()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return super<A>.toString()
|
||||
}
|
||||
|
||||
@@ -6,16 +6,20 @@ class Other {
|
||||
override fun equals(other: Any?): Boolean {
|
||||
<selection><caret>return super<Any>.equals(other)</selection>
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return super<Any>.hashCode()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return super<Any>.toString()
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,16 +6,21 @@ class Other {
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
<selection><caret>return super<Any>.equals(other)</selection>
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return super<Any>.hashCode()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return super<Any>.toString()
|
||||
}
|
||||
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,16 +6,20 @@ class Other {
|
||||
override fun equals(other: Any?): Boolean {
|
||||
<selection><caret>return super<Any>.equals(other)</selection>
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return super<Any>.hashCode()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return super<Any>.toString()
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val a = 1
|
||||
}
|
||||
fun otherTest() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,12 +10,15 @@ class C : A() {
|
||||
override fun equals(other: Any?): Boolean {
|
||||
return super<A>.equals(other)
|
||||
}
|
||||
|
||||
override fun foo(value: Int) {
|
||||
super<A>.foo(value)
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return super<A>.hashCode()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return super<A>.toString()
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ class SomeTest : Test {
|
||||
override fun test() {
|
||||
<selection><caret>throw UnsupportedOperationException()</selection>
|
||||
}
|
||||
|
||||
override val testProp: Int = 0
|
||||
/**
|
||||
* test
|
||||
|
||||
Reference in New Issue
Block a user