[Demonstration 1]

[Buggy Method]
private boolean isFieldSet(final long index) {
    CompilerAsserts.neverPartOfCompilation("isFieldSet");
    StorageLocation location = getLocation(index);
    return location.isSet(this, true);
}

[Buggy Hunk]
return location.isSet(this, true);

[Patch]
return location.isSet(this);

[Demonstration 2]

[Buggy Method]
@Override
public boolean equals(Object o) {
    if (o == this) {
        return true;
    } else if (o == null) {
        return false;
    }
    if (o.getClass() == getClass()) {
        ExtensibleJsonObject obj = (ExtensibleJsonObject) o;
        return obj.metadata.equals(metadata);
    }
    return false;
}

[Buggy Hunk]
return obj.metadata.equals(metadata);

[Patch]
return metadataEquals(obj.metadata, metadata);

[Demonstration 3]

[Buggy Method]
@Override
public boolean equals(Object o) {
    return this.name.equals(((Square) o).getName());
    //        return this.id.equals(((Square)o).getId());
}

[Buggy Hunk]
return this.name.equals(((Square)o).getName());

[Patch]
return this.id.equals(((Square)o).getId());