[Demonstration 1]

[Buggy Method]
@Override
protected void log(int priority, String tag, String message, Throwable t) {
    addEntry(new LogEntry(priority, tag, message, LOG_DATE_PATTERN.format(Calendar.getInstance().getTime())));
}

[Buggy Hunk]
LOG_DATE_PATTERN.format(Calendar.getInstance().getTime())));

[Patch]
logDatePattern.format(Calendar.getInstance().getTime())));

[Demonstration 2]

[Buggy Method]
@Override
public String toString(Object msg) {
    if (msg instanceof String) {
        return msg.toString();
    }
    try {
        return codec.writeValueAsString(codec);
    } catch (IOException ex) {
        ctrl.internalOnError(ex);
        return null;
    }
}

[Buggy Hunk]
return codec.writeValueAsString(codec);

[Patch]
return codec.writeValueAsString(msg);

[Demonstration 3]

[Buggy Method]
@Override
public int compareTo(Object o) {
    Player tmpP = (Player) o;
    return this.toString().compareTo(tmpP.toString());
}

[Buggy Hunk]
return this.toString().compareTo(tmpP.toString());

[Patch]
return this.getId()-tmpP.getId();