Skip to content

Commit

Permalink
refact: use {}
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil committed Oct 16, 2024
1 parent 4ad5d10 commit 95f1daa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,15 @@ public int hashCode() {
/** {@inheritDoc} */
@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;
}
DesignStandard other = (DesignStandard) obj;
return Objects.equals(equipment, other.equipment)
&& Objects.equals(standardName, other.standardName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,15 @@ public int hashCode() {
/** {@inheritDoc} */
@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;
}
AntiSurge other = (AntiSurge) obj;
return Double.doubleToLongBits(currentSurgeFraction) == Double
.doubleToLongBits(other.currentSurgeFraction) && isActive == other.isActive
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,15 @@ public int hashCode() {
/** {@inheritDoc} */
@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;
}
CompressorCurve other = (CompressorCurve) obj;
return Arrays.equals(flow, other.flow) && Arrays.equals(head, other.head)
&& Arrays.equals(polytropicEfficiency, other.polytropicEfficiency)
Expand Down

0 comments on commit 95f1daa

Please sign in to comment.