[Demonstration 1]

[Buggy Method]
public void deleteBlock() {
    if (currentIndex != -1) {
        operators[currentIndex] = ' ';
        currentIndex--;
    }
}

[Buggy Hunk]
operators[currentIndex] = ' ';

[Patch]
blocks[currentIndex].setEmpty(true);

[Demonstration 2]

[Buggy Method]
public static byte[] unseal(String password) throws GeneralSecurityException {
    Objects.requireNonNull(password, PASSWORD_MUST_NOT_BE_NULL);
    if (!isSealed(password)) {
        return password.getBytes();
    }
    char[] notSecretPassword = new char[] { '#', '#', '#', ' ', 'n', 'o', 't', ' ', 's', 'o', ' ', 'm', 'u', 'c', 'h', ' ', 's', 'e', 'c', 'r', 'e', 't', ' ', 'p', 'a', 's', 's', 'w', 'o', 'r', 'd', ' ', '*', '*', '*' };
    byte[] decrypted = PBE.getDecrypter().decrypt64(notSecretPassword, password.substring(10, password.length()));
    // セキュリティ情報なので上書き削除しておく。
    Arrays.fill(notSecretPassword, (char) 0x00);
    return decrypted;
}

[Buggy Hunk]
byte[] decrypted = PBE.getDecrypter().decrypt64(notSecretPassword, password.substring(10, password.length()));

[Patch]
byte[] decrypted = PBE.getDecrypter().decrypt64(notSecretPassword, password.substring(SEALED_PASSWORD_PREFIX.length(), password.length()));

[Demonstration 3]

[Buggy Method]
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == R.id.action_settings) {
        Intent k = new Intent(this, Settings.class);
        startActivity(k);
    }
    return super.onOptionsItemSelected(item);
}

[Buggy Hunk]
Intent k = new Intent(this, Settings.class);

[Patch]
Intent k = new Intent(getApplicationContext(), Settings.class);