BAEL-4077 Fixup styling

This commit is contained in:
andrebrowne 2020-08-08 21:05:32 -04:00
parent 9e03b89e69
commit d50a831972
4 changed files with 17 additions and 16 deletions

View File

@ -40,15 +40,17 @@ public class EqualByBusinessKey {
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (this == obj) if (this == obj) {
return true; return true;
if (obj == null) }
return false; if (obj == null) {
if (obj instanceof EqualByBusinessKey) return false;
if (((EqualByBusinessKey) obj).getEmail() == getEmail()) }
return true; if (obj instanceof EqualByBusinessKey) {
if (((EqualByBusinessKey) obj).getEmail() == getEmail()) {
return true;
}
}
return false; return false;
} }
} }

View File

@ -41,14 +41,15 @@ public class EqualById {
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (this == obj) if (this == obj) {
return true; return true;
if (obj == null) }
return false; if (obj == null) {
if (obj instanceof EqualById) return false;
return ((EqualById) obj).getId() == getId(); }
if (obj instanceof EqualById) {
return ((EqualById) obj).getId().equals(getId());
}
return false; return false;
} }
} }

View File

@ -30,9 +30,7 @@ public class EqualByJavaDefault implements Cloneable{
this.email = email; this.email = email;
} }
public Object clone() throws public Object clone() throws CloneNotSupportedException {
CloneNotSupportedException
{
return super.clone(); return super.clone();
} }
} }