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
public boolean equals(Object obj) {
if (this == obj)
if (this == obj) {
return true;
if (obj == null)
}
if (obj == null) {
return false;
if (obj instanceof EqualByBusinessKey)
if (((EqualByBusinessKey) obj).getEmail() == getEmail())
}
if (obj instanceof EqualByBusinessKey) {
if (((EqualByBusinessKey) obj).getEmail() == getEmail()) {
return true;
}
}
return false;
}
}

View File

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

View File

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

View File

@ -71,4 +71,4 @@ public class EqualityUnitTest {
Assert.assertEquals(object1, object2);
Assert.assertNotEquals(object1.getId(), object2.getId());
}
}
}