[Demonstration 1]

[Buggy Method]
private static short getShortAt(byte[] array, int idx) {
    return (short) ((array[idx] << 8) + array[idx + 1]);
}

[Buggy Hunk]
return (short) ((array[idx] << 8) + array[idx + 1]);

[Patch]
return (short) (((array[idx] & 0xff) << 8) | (array[idx + 1] & 0xff));

[Demonstration 2]

[Buggy Method]
@Override
public boolean handles(URI location) {
    return Objects.equals(getScheme(), this.AnonymousScheme);
}

[Buggy Hunk]
return Objects.equals(getScheme(), this.AnonymousScheme);

[Patch]
return Objects.equals(getScheme(),location.getScheme());