Skip to content

Commit adca423

Browse files
ulleniusJohannestegner
authored andcommitted
Minor. Put if-statements into brackets
1 parent 76f5ed4 commit adca423

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/main/java/dev/personnummer/Personnummer.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,15 @@ public int hashCode() {
229229

230230
@Override
231231
public boolean equals(Object obj) {
232-
if (this == obj)
232+
if (this == obj) {
233233
return true;
234-
if (obj == null)
234+
}
235+
if (obj == null) {
235236
return false;
236-
if (getClass() != obj.getClass())
237+
}
238+
if (getClass() != obj.getClass()) {
237239
return false;
240+
}
238241
Personnummer other = (Personnummer) obj;
239242
return Objects.equals(format(true), other.format(true));
240243
}

0 commit comments

Comments
 (0)