[Demonstration 1]

[Buggy Method]
@Override
public void setConfiguration(Configuration configuration) {
    this.configuration = configuration.getConfiguration();
}

[Buggy Hunk]
this.configuration = configuration.getConfiguration();

[Patch]
this.configuration.putAll(configuration.getConfiguration());

[Demonstration 2]

[Buggy Method]
@Override
public void bindView(View view, Context context, Cursor cursor) {
    TextView nameTxt = (TextView) view.findViewById(R.id.list_item_inventory);
    TextView dateTxt = (TextView) view.findViewById(R.id.list_item_inventory_exp_date);
    String name = cursor.getString(InventoryFragment.COL_NAME);
    String qty = Integer.toString(cursor.getInt(InventoryFragment.COL_QTY));
    nameTxt.setText(name + " - " + qty);
    long date = cursor.getLong(InventoryFragment.COL_DATE);
    String dateString = context.getString(R.string.none);
    if (date != 0) {
        dateString = Utility.getFormattedDate(date);
    }
    String expDateString = context.getString(R.string.format_exp_date_inventory_list_item, dateString);
    dateTxt.setText(expDateString);
}

[Buggy Hunk]
if(date != 0){

[Patch]
if(date > 0){

[Demonstration 3]

[Buggy Method]
@Override
protected JSONObject onMessage(Component sender, JSONObject msg) throws Exception {
    String cmd = msg.optString(Messages.COMMAND);
    switch(cmd) {
        case Messages.GET_CONFIG:
            JSONObject json = new JSONObject();
            json.put(Messages.CONFIG, this.config);
            return json;
        case Messages.SET_CONFIG:
            JSONObject newConfig = msg.optJSONObject(Messages.CONFIG);
            if (newConfig == null) {
                logger.error("'set config' - message does not contain 'config':" + msg.toString());
                ExceptionHandler.showErrorDialog(new Exception("Invalid message does not contain 'config': " + msg.toString()));
            } else {
                this.config = newConfig;
                this.configChanged();
            }
            JSONObject answer = new JSONObject();
            answer.put(Messages.ANSWER, "done");
            return answer;
        default:
            if (cmd == null) {
                logger.error("Message does not have 'command' :" + msg.toString());
            } else {
                logger.error("Unhandled message command:" + cmd);
            }
            break;
    }
    return null;
}

[Buggy Hunk]
logger.error("Unhandled message command:" + cmd);

[Patch]
logger.debug("Unhandled message command:" + cmd);