We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117f143 commit 31bf7f7Copy full SHA for 31bf7f7
src/main/kotlin/g0301_0400/s0391_perfect_rectangle/Solution.kt
@@ -58,14 +58,14 @@ class Solution {
58
}
59
60
private class Point(val x: Int, val y: Int) {
61
- override fun equals(o: Any?): Boolean {
62
- if (this === o) {
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
63
return true
64
65
- if (o == null || javaClass != o.javaClass) {
+ if (other == null || javaClass != other.javaClass) {
66
return false
67
68
- val point = o as Point
+ val point = other as Point
69
return x == point.x && y == point.y
70
71
0 commit comments