Skip to content

Commit 31bf7f7

Browse files
authored
Update Solution.kt
1 parent 117f143 commit 31bf7f7

File tree

1 file changed

+4
-4
lines changed
  • src/main/kotlin/g0301_0400/s0391_perfect_rectangle

1 file changed

+4
-4
lines changed

src/main/kotlin/g0301_0400/s0391_perfect_rectangle/Solution.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ class Solution {
5858
}
5959

6060
private class Point(val x: Int, val y: Int) {
61-
override fun equals(o: Any?): Boolean {
62-
if (this === o) {
61+
override fun equals(other: Any?): Boolean {
62+
if (this === other) {
6363
return true
6464
}
65-
if (o == null || javaClass != o.javaClass) {
65+
if (other == null || javaClass != other.javaClass) {
6666
return false
6767
}
68-
val point = o as Point
68+
val point = other as Point
6969
return x == point.x && y == point.y
7070
}
7171

0 commit comments

Comments
 (0)