[Demonstration 1]

[Buggy Method]
public void draw() {
    //move and show the bacteria
    background(bacteria.bacteriaColor, 0, 0);
    for (int i = 0; i < bob.length; i++) {
        bob[i].show();
        bob[i].move();
        //System.out.println("ok");
    }
}

[Buggy Hunk]
background(bacteria.bacteriaColor, 0, 0);

[Patch]
background(0, 0, 0);

[Demonstration 2]

[Buggy Method]
public void inspect(Object obj, boolean recursive) {
    if (obj == null)
        return;
    try {
        Class classObj = obj.getClass();
        printInfo(classObj, obj, recursive);
    } catch (IllegalArgumentException | IllegalAccessException | InstantiationException e) {
        e.printStackTrace();
    }
}

[Buggy Hunk]
e.printStackTrace();

[Patch]
System.out.println(e.getCause());

[Demonstration 3]

[Buggy Method]
public static int delete(Object obj) throws IllegalAccessException, SQLException {
    Transaction tx = null;
    try {
        tx = ORM.beginTransaction();
        return delete(obj);
    } finally {
        if (tx != null) {
            tx.commit();
        }
    }
}

[Buggy Hunk]
return delete(obj);

[Patch]
return tx.delete(obj);