[Demonstration 1]

[Buggy Method]
@Override
public void onTick(long millisUntilFinished) {
    whiteTimeLeft = millisUntilFinished;
    tvWhite.setText(whiteTimeLeft / 1000 + " ( " + whitePeriodsLeft + " )");
}

[Buggy Hunk]
tvWhite.setText(whiteTimeLeft / 1000 + " ( " + whitePeriodsLeft + " )");

[Patch]
tvWhite.setText(whiteTimeLeft / 1000 + " ( " + (whitePeriodsLeft + 1) + " )");

[Demonstration 2]

[Buggy Method]
public void newSong(long id) {
    data.updateCurrentQueueIndex(queue.indexOf(id));
}

[Buggy Hunk]
public void newSong(long id)

[Patch]
void newSong(long id)

[Demonstration 3]

[Buggy Method]
@SuppressWarnings("unchecked")
@Override
public boolean addChild(IJp2pComponent<?> child) {
    if (containers.contains(child))
        return false;
    containers.add((IJp2pContainer<T>) child);
    IJp2pContainer<?> container = (IJp2pContainer<?>) child;
    container.getDispatcher().addServiceChangeListener(listener);
    Collections.sort(containers, new Jp2pServiceComparator<Object>());
    return true;
}

[Buggy Hunk]
public boolean addChild(IJp2pComponent<?> child) {

[Patch]
public synchronized boolean addChild(IJp2pComponent<?> child) {