Skip to content

Commit

Permalink
Polish equals #367
Browse files Browse the repository at this point in the history
  • Loading branch information
making committed Dec 11, 2015
1 parent 70be128 commit b95b38b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,18 @@ public String halfwidth() {
*/
@Override
public boolean equals(Object o) {
if (this == o)
if (this == o) {
return true;
if (o == null || getClass() != o.getClass())
}
if (o == null || getClass() != o.getClass()) {
return false;
}

FullHalfPair that = (FullHalfPair) o;

if (!fullwidth.equals(that.fullwidth))
if (!fullwidth.equals(that.fullwidth)) {
return false;
}
return halfwidth.equals(that.halfwidth);

}
Expand Down

0 comments on commit b95b38b

Please sign in to comment.