[Demonstration 1]

[Buggy Method]
public void tryAllUpRoot(UUID cliID) {
    CommandLineData newData = cld.findCommandLineDataParent(cliID);
    if (newData != null) {
        cld = newData;
        consoleArrow.setText(cld.parser.getInputPrefix());
        consoleDialog.setText(cld.textHistory);
        updateScroll += 5;
    }
}

[Buggy Hunk]
CommandLineData newData = cld.findCommandLineDataParent(cliID);

[Patch]
CommandLineData newData = cld.findCommandLineData(cliID);

[Demonstration 2]

[Buggy Method]
@Override
public void onServiceConnected(ComponentName componentName, IBinder service) {
    Log.d(TAG, "start service Connection");
    mBluetoothLeService = ((BLEService.LocalBinder) service).getService();
    //从搜索出来的services里面找出合适的service
    List<BluetoothGattService> gattServiceList = mBluetoothLeService.getSupportedGattServices();
    mCharacteristic = GATTUtils.lookupGattServices(gattServiceList, GATTUtils.BLE_TX);
    mCharacteristic.setValue("123");
    mBluetoothLeService.writeCharacteristic(mCharacteristic);
    //            //
    if (null != mCharacteristic) {
        mBluetoothLeService.setCharacteristicNotification(mCharacteristic, true);
    }
    mAMapNavi.startNavi(AMapNavi.EmulatorNaviMode);
}

[Buggy Hunk]
mCharacteristic.setValue("123");

[Patch]
mCharacteristic.setValue('g'+"");

[Demonstration 3]

[Buggy Method]
protected void updateBlackStrokes() {
    for (ChessPropreties ch : addingBlackFigures) {
        ch.checkForBorders(false);
    }
    pawn0.checkForBorders(false);
    pawn1.checkForBorders(false);
    pawn2.checkForBorders(false);
    pawn3.checkForBorders(false);
    pawn4.checkForBorders(false);
    pawn5.checkForBorders(false);
    pawn6.checkForBorders(false);
    pawn7.checkForBorders(false);
    king.checkForBorders(false);
    blackQueen.checkForBorders(false);
    blackHorse1.checkForBorders(false);
    blackHorse2.checkForBorders(false);
    blackElephant1.checkForBorders(false);
    blackElephant2.checkForBorders(false);
    blackRook1.checkForBorders(false);
    blackRook2.checkForBorders(false);
}

[Buggy Hunk]
protected void updateBlackStrokes(){

[Patch]
protected static void updateBlackStrokes(){