reduce code
This commit is contained in:
parent
156f7a67f4
commit
ffb5212b9c
|
@ -730,9 +730,7 @@ public class EqualExample {
|
|||
|
||||
EqualExample that = (EqualExample) o;
|
||||
|
||||
if (x != that.x) return false;
|
||||
if (y != that.y) return false;
|
||||
return z == that.z;
|
||||
return x == that.x && y == that.y && z == that.z;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user