public class ReplaceTernaryWithIfBugReport {
private Object value;
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ReplaceTernaryWithIfBugReport that = (ReplaceTernaryWithIfBugReport)o;
if (value != null ? !value.equals(that.value) : that.value != null) {
return false;
}
return true;
}
public boolean equalsAfterAutomaticRefactoring(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ReplaceTernaryWithIfBugReport that = (ReplaceTernaryWithIfBugReport)o;
if (value != null) {
if (!value.equals(that.value)) {
return false;
} else if (that.value != null) {
return false;
}
}
return true;
}
public int hashCode() {
return (value != null ? value.hashCode() : 0);
}
}