[Demonstration 1]

[Buggy Method]
@RequestMapping(value = "sysapi/v1/stuff", method = RequestMethod.GET)
public List<StuffDTO> stuff(@RequestParam(value = "projectId", required = false) Long projectId) {
    List<StuffDTO> stuffDTOs = new ArrayList<StuffDTO>();
    if (projectId != null && projectId > 0) {
        stuffDTOs = stuffService.getStuf(projectId);
    }
    return stuffDTOs;
}

[Buggy Hunk]
stuffDTOs = stuffService.getStuf(projectId);

[Patch]
stuffDTOs = stuffService.getStuff(projectId);

[Demonstration 2]

[Buggy Method]
@RequestMapping(value = ApplicationConstants.LOGIN, method = RequestMethod.POST, consumes = MediaType.APPLICATION_FORM_URLENCODED, produces = MediaType.APPLICATION_JSON_VALUE, headers = ApplicationConstants.HEDAER_REQUEST)
public CustomerHistoryModel getCustomerHistory(@RequestBody String cardNo) {
    LOGGER.debug("Enter into customer history method in LoyalityManagementController");
    CustomerHistoryModel custHistoryModel = new CustomerHistoryModel();
    try {
        return this.loyalityManagementService.getCustomerHistory(cardNo);
    } catch (Exception e) {
        LOGGER.error("Error occur while getting customer history method of LoyalityManagementController");
        e.printStackTrace();
    }
    LOGGER.debug("Exit customer history method in LoyalityManagementController");
    return custHistoryModel;
}

[Buggy Hunk]
MediaType.APPLICATION_FORM_URLENCODED, produces = MediaType.APPLICATION_JSON_VALUE,

[Patch]
MediaType.APPLICATION_XML_VALUE, produces = MediaType.APPLICATION_JSON_VALUE,

[Demonstration 3]

[Buggy Method]
private void CheckStatus() {
    // 10-20 чутка
    // 150 - лучевая болезнь
    // 400 - смерть
    if (this._countRad <= 20) {
        this.set_status(StatusLife.LIFE);
    } else if ((this._countRad > 20) && (this._countRad <= 150)) {
        this.set_status(StatusLife.ILL);
    } else if ((this._countRad > 150) && (this._countRad <= 400)) {
        this.set_status(StatusLife.RADSIC);
    } else if (this._countRad >= 400) {
        this.set_status(StatusLife.DEAD);
    }
}

[Buggy Hunk]
}else if ((this._countRad > 150) && (this._countRad <= 400)) {

[Patch]
}else if ((this._countRad > 150) && (this._countRad < 400)) {