From adca42328c48f1612b195c6a89ae39c24642c0fa Mon Sep 17 00:00:00 2001 From: "Anosh D. Ullenius" Date: Fri, 26 Jun 2020 22:37:43 +0200 Subject: [PATCH] Minor. Put if-statements into brackets --- src/main/java/dev/personnummer/Personnummer.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/dev/personnummer/Personnummer.java b/src/main/java/dev/personnummer/Personnummer.java index be4e070..1e6c26d 100644 --- a/src/main/java/dev/personnummer/Personnummer.java +++ b/src/main/java/dev/personnummer/Personnummer.java @@ -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)); }