[Demonstration 1]

[Buggy Method]
public static void notifyUser(Context context, String message) {
    String appName = context.getString(R.string.app_name);
    notifyUser(context, message, appName);
}

[Buggy Hunk]
public static void notifyUser(Context context, String message) {

[Patch]
public synchronized static void notifyUser(Context context, String message) {

[Demonstration 2]

[Buggy Method]
public int hashCode() {
    return employee.hashCode() + startDate.hashCode();
}

[Buggy Hunk]
return employee.hashCode() + startDate.hashCode();

[Patch]
return new Long(employeeId).hashCode() + startDate.hashCode();

[Demonstration 3]

[Buggy Method]
public int poll(final boolean wait, final OutputStream outstream) throws IOException {
    if (!queueRunning) {
        throw new QueueUnavailableException("queue is not available");
    }
    lastTransmission = nanoTime();
    if (pagedOut) {
        synchronized (pageLock) {
            if (pagedOut) {
                readInPageFile(outstream);
                return -1;
            }
        }
    }
    int seg;
    try {
        if (wait) {
            seg = buffer.readWait(TimeUnit.SECONDS, 20, outstream, bufferColor, new BufferHelper.MultiMessageHandlerCallback());
        } else {
            seg = buffer.read(outstream, bufferColor, new BufferHelper.MultiMessageHandlerCallback());
        }
        messageCount.set(0);
        outstream.flush();
    } catch (InterruptedException e) {
        e.printStackTrace();
        seg = -1;
    }
    return seg;
}

[Buggy Hunk]
readInPageFile(outstream);

[Patch]
readInPageFile(outstream, new BufferHelper.MultiMessageHandlerCallback());