[Demonstration 1]

[Buggy Method]
public void create(String name, String mode) {
    ProgrammingLanguage programmingLanguage = new ProgrammingLanguage();
    programmingLanguage.setName(name);
    programmingLanguage.setMode(name);
    create(programmingLanguage);
}

[Buggy Hunk]
programmingLanguage.setMode(name);

[Patch]
programmingLanguage.setMode(mode);

[Demonstration 2]

[Buggy Method]
@Override
protected void onStop() {
    super.onStop();
    Log.i(TAG, BaseActivity.this.getClass().getSimpleName() + " onStop");
    // 如果是切换到其他App，则需要停止UI监听
    CommonResponseManager.getInstance().unregisterUINotification(this);
}

[Buggy Hunk]
CommonResponseManager.getInstance().unregisterUINotification(this);

[Patch]
CommonResponseManager.getInstance().unregisterUINotification();

[Demonstration 3]

[Buggy Method]
@Override
public void run() {
    if (coreData.getScoreLength() > 0) {
        if (coreData.getSongWaveform() != null) {
            coreData.getSongWaveform().pause();
            coreData.getSongWaveform().close();
            ;
        }
        mainWindow.showWaveformStatus("歌声合成中...");
        mainWindow.flushLoggerWindow();
        if (coreData.getPitches() == null) {
            coreData.nakloidIni.input.pitches_mode = NakloidIni.PitchesMode.pitches_mode_none;
            coreData.nakloidIni.output.path_output_pitches = Paths.get(NakloidGUI.preferenceStore.getString("ini.input.path_input_pitches"));
        }
        try {
            coreData.synthesize(null);
        } catch (IOException e) {
            MessageDialog.openError(mainWindow.getShell(), "NakloidGUI", "ファイルの入出力にエラーが発生しました。\n" + e.getMessage());
        } catch (InterruptedException e) {
            MessageDialog.openError(mainWindow.getShell(), "NakloidGUI", "Nakloidが中断されました。\n" + e.getMessage());
        } finally {
            coreData.nakloidIni.input.pitches_mode = NakloidIni.PitchesMode.pitches_mode_pit;
            coreData.nakloidIni.output.path_output_pitches = null;
        }
    }
}

[Buggy Hunk]
coreData.getSongWaveform().close();;

[Patch]
coreData.getSongWaveform().close();