Version 7.9.0.26994
Community Edition
This is an override of equals for an ORM class that I’m pretty sure was auto-generated by IntelliJ IDEA.
To me the indentation appears to be correct.
Yet squid:S3973 claims that after the else if, the return is not indented correctly.
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
someDTO other = (someDTO) obj;
if (lastRefresh == null) {
if (other.someValue != null)
return false;
} else if (!someValue.equals(other.someValue))
return false;
return true;
}