[Demonstration 1]

[Buggy Method]
public void onClick(View view) {
    switch(view.getId()) {
        case R.id.shutter_btn:
            takePicture(this, null, this);
            break;
        case R.id.zoom_down_btn:
            zoomDown();
            break;
        case R.id.zoom_up_btn:
            zoomUp();
            break;
        case R.id.torch_switch_btn:
            toggleTorch();
            break;
        case R.id.choose_picture_btn:
            choosePicture();
            break;
        default:
            break;
    }
}

[Buggy Hunk]
takePicture(this, null, this);

[Patch]
takePicture(null, null, this);

[Demonstration 2]

[Buggy Method]
@Override
public View getView(int position, View convertView, ViewGroup parent) {
    Node node = mNodes.get(position);
    convertView = getConvertView(node, position, convertView, parent);
    // 设置内边距
    convertView.setPadding(30, 3, 3, 3);
    return convertView;
}

[Buggy Hunk]
convertView.setPadding(30, 3, 3, 3);

[Patch]
convertView.setPadding(30, 0, 0, 0);

[Demonstration 3]

[Buggy Method]
@Override
public int execute(CLIDelegate delegate) {
    val file = new File(sci.getContext().get(OPTION).toString());
    if (!file.exists()) {
        app.error(app.tr("error.input.notExists", file.getPath()));
        return -1;
    }
    val result = detectScriptEngine();
    if (result == null) {
        return -1;
    }
    try (val reader = new FileReader(file)) {
        val engine = (ScriptEngine) result;
        engine.put("app", app);
        engine.put("sci", sci);
        engine.put("config", config);
        engine.eval(reader);
    } catch (Exception e) {
        app.error(M.tr("runScript.error"), e);
        return -1;
    }
    return 0;
}

[Buggy Hunk]
app.error(M.tr("runScript.error"), e);

[Patch]
app.error(M._("runScript.error"), e);