[Demonstration 1]

[Buggy Method]
public static void BinRowListOut(OutputStream out, RowList rl) throws IOException {
    int colcount = rl.getColumnCount();
    boolean run = rl.first();
    while (run) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < colcount - 1; i++) sb.append(rl.getString(i) + "\r\n");
        byte[] head = sb.toString().getBytes();
        byte[] tail = rl.getBinary(colcount - 1);
        run = rl.next();
        if (tail == null)
            continue;
        int len = head.length + tail.length;
        out.write(("start:" + len + "\r\n").getBytes());
        out.write(head);
        out.write(tail);
        out.write("\r\n".getBytes());
    }
}

[Buggy Hunk]
byte[] head = sb.toString().getBytes();

[Patch]
byte[] head = sb.toString().getBytes( ASCII );

[Demonstration 2]

[Buggy Method]
public void add(double first, double second) {
    result = first + second;
}

[Buggy Hunk]
result = first + second;

[Patch]
this.result = first + second;

[Demonstration 3]

[Buggy Method]
public boolean login(String username, String password) {
    user = users.findByMatIdAndPassword(username, password);
    return user != null;
}

[Buggy Hunk]
return user != null;

[Patch]
return (isNew = user != null);