[Demonstration 1]

[Buggy Method]
public int hashCode() {
    if (hash == 0) {
        int ret = System.identityHashCode(root);
        ret = (ret * 31) + System.identityHashCode(seq);
        ret = (ret * 31) + ostate.hashCode();
        hash = (ret == 0) ? 1 : 0;
    }
    return (hash);
}

[Buggy Hunk]
hash = (ret == 0)?1:0;

[Patch]
hash = (ret == 0)?1:ret;

[Demonstration 2]

[Buggy Method]
public static void returnToDefaultTheme(Context context) {
    Settings.Secure.putInt(context.getContentResolver(), Settings.Secure.THEME_PRIMARY_COLOR, 1);
    Settings.Secure.putInt(context.getContentResolver(), Settings.Secure.THEME_ACCENT_COLOR, 0);
}

[Buggy Hunk]
Settings.Secure.THEME_PRIMARY_COLOR, 1);

[Patch]
Settings.Secure.THEME_PRIMARY_COLOR, 0);

[Demonstration 3]

[Buggy Method]
public void attachToActivity(Activity activity, int slideStyle) {
    attachToActivity(activity, slideStyle, false);
}

[Buggy Hunk]
attachToActivity(activity, slideStyle, false);

[Patch]
attachToActivity(activity, slideStyle, true);