[Demonstration 1]

[Buggy Method]
@Override
public boolean equals(Object o) {
    if (this == o)
        return true;
    if (o == null || getClass() != o.getClass())
        return false;
    ReferenceType that = (ReferenceType) o;
    if (!typeDeclaration.equals(that.typeDeclaration))
        return false;
    if (!typeParametersMap.equals(that.typeParametersMap))
        return false;
    return true;
}

[Buggy Hunk]
ReferenceType that = (ReferenceType) o;

[Patch]
ResolvedReferenceType that = (ResolvedReferenceType) o;

[Demonstration 2]

[Buggy Method]
@Override
public boolean equals(Object o) {
    return o != null && this.getClass() == o.getClass() && this.getClockwiseRotationsFromNaturalOrientation() == ((Orientation) o).getClockwiseRotationsFromNaturalOrientation();
}

[Buggy Hunk]
public boolean equals(Object o) {

[Patch]
public boolean equals(@Nullable Object o) {

[Demonstration 3]

[Buggy Method]
public String toString() {
    String format = employeeid + " " + workday + " " + starttime + " " + endtime;
    return format;
}

[Buggy Hunk]
String format = employeeid + " " + workday + " " + starttime + " " + endtime;

[Patch]
String format = bid + "" + employeeid + " " + workday + " " + starttime + " " + endtime;