[Demonstration 1]

[Buggy Method]
private static ResponseInfo updateClient(String clientId, JSONObject receivedData) throws IOException, Exception {
    ResponseInfo responseInfo = null;
    try {
        String requestUrl = ClientController.URL_QUERY_UPDATE_CLIENT + clientId;
        requestUrl = requestUrl.replace(ClientController.PARAM_CLIENT_ID, clientId);
        responseInfo = Util.sendRequest(Util.REQUEST_TYPE_PUT, requestUrl, receivedData, null);
        if (responseInfo.responseCode == 200) {
            responseInfo.output = receivedData.toString();
        }
        Util.processResponseMsg(responseInfo, "");
    } catch (Exception ex) {
        System.out.println("Exception: " + ex.toString());
    }
    return responseInfo;
}

[Buggy Hunk]
String requestUrl = ClientController.URL_QUERY_UPDATE_CLIENT + clientId;

[Patch]
String requestUrl = ClientController.URL_QUERY_UPDATE_CLIENT;

[Demonstration 2]

[Buggy Method]
void getQuestionAndSetUI() {
    if (i >= numOfQuestions) {
        Collections.sort(decisions);
        Intent it = new Intent(this, ResultList.class);
        int numOfKeyWord = decisions.size();
        for (int j = 0; j < decisions.size(); j++) {
            if (j >= 1 && j <= 6) {
                numOfKeyWord--;
            } else {
                it.putExtra(j + "", foodType[decisions.get(j)]);
            }
        }
        it.putExtra("numOfKeyWord", numOfKeyWord);
        startActivity(it);
    } else {
        int id = TwoChooseOne();
        choice1.setText(foodType[id]);
        choice2.setText(foodType[id + 1]);
        CDT = new CountDownTimer(5000, 500) {

            @Override
            public void onFinish() {
                // TODO Auto-generated method stub
                i++;
                getQuestionAndSetUI();
            }

            @Override
            public void onTick(long millisUntilFinished) {
                // TODO Auto-generated method stub
                mTextView.setText((millisUntilFinished / 1000) + 1 + "");
            }
        }.start();
    }
}

[Buggy Hunk]
if(j>=1 && j<=6){

[Patch]
if(decisions.get(j)>=1 && decisions.get(j)<=4){

[Demonstration 3]

[Buggy Method]
public void addSendMessage(Message message) {
    if (Validator.checkObject(message, Message.class)) {
        if (message.getMessageProperties().getCorrelationId() != null && message.getMessageProperties().getCorrelationId().length > 0) {
            this.mapSendMessages.put(this.mapSendMessages.size(), message);
            this.addIdentifier(message.getMessageProperties().getCorrelationId().toString());
        }
    }
}

[Buggy Hunk]
this.addIdentifier(message.getMessageProperties().getCorrelationId().toString());

[Patch]
this.addIdentifier(new String(message.getMessageProperties().getCorrelationId()));