[Demonstration 1]

[Buggy Method]
public boolean empty() {
    return (top >= 0) ? false : true;
}

[Buggy Hunk]
return (top>=0)?false:true;

[Patch]
return (stack.size()<=0)?true:false;

[Demonstration 2]

[Buggy Method]
public void init() {
    for (int i = 0; i < settings.maxWorkersInPool; ++i) {
        Worker w = new Worker(workerPool, settings);
        (new Thread(w, "worker #" + i)).start();
        workerPool.addElement(w);
    }
}

[Buggy Hunk]
Worker w = new Worker(workerPool, settings);

[Patch]
Worker w = new Worker(this, settings);

[Demonstration 3]

[Buggy Method]
@Override
public int clampViewPositionVertical(View child, int top, int dy) {
    int newTop = Math.max(Math.min(top, topBound), bottomBound);
    return newTop;
}

[Buggy Hunk]
int newTop = Math.max(Math.min(top, topBound), bottomBound);

[Patch]
int newTop = Math.max(Math.min(top, maxY), minY);