Skip to content

Commit

Permalink
Minor. Put if-statements into brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
ullenius authored and Johannestegner committed Jun 26, 2020
1 parent 76f5ed4 commit adca423
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/dev/personnummer/Personnummer.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,15 @@ public int hashCode() {

@Override
public boolean equals(Object obj) {
if (this == obj)
if (this == obj) {
return true;
if (obj == null)
}
if (obj == null) {
return false;
if (getClass() != obj.getClass())
}
if (getClass() != obj.getClass()) {
return false;
}
Personnummer other = (Personnummer) obj;
return Objects.equals(format(true), other.format(true));
}
Expand Down

0 comments on commit adca423

Please sign in to comment.