mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Code Insight: Format generated declarations
#KT-11176 Fixed
(cherry picked from commit 3641ad6)
This commit is contained in:
@@ -3,7 +3,7 @@ class A(val n: Int) : X() {
|
||||
|
||||
}
|
||||
|
||||
<caret>override fun equals(other: Any?): Boolean{
|
||||
<caret>override fun equals(other: Any?): Boolean {
|
||||
if (this === other) return true
|
||||
if (other?.javaClass != javaClass) return false
|
||||
if (!super.equals(other)) return false
|
||||
@@ -15,7 +15,7 @@ class A(val n: Int) : X() {
|
||||
return true
|
||||
}
|
||||
|
||||
override fun hashCode(): Int{
|
||||
override fun hashCode(): Int {
|
||||
var result = super.hashCode()
|
||||
result = 31 * result + n
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user