[Demonstration 1]

[Buggy Method]
@Override
public void onLowMemory() {
    Log.i(getClass().getName(), "OnLowMemory()");
    super.onLowMemory();
    //iuAppLockServicePresenter.unregisterReceivers();
    iuAppLockServicePresenter.restartServiceIfNeeded();
}

[Buggy Hunk]
Log.i(getClass().getName(), "OnLowMemory()");

[Patch]
Log.i(getClass().getSimpleName(), "OnLowMemory()");

[Demonstration 2]

[Buggy Method]
private void addTheList(List<E> listToAdd, long timeout) {
    TimeInterrupter interrupter = null;
    if (timeout >= 0) {
        interrupter = new TimeInterrupter(timeout, Thread.currentThread());
        interrupter.start();
    }
    synchronized (synchronizer) {
        try {
            long myActNum;
            synchronized (offerCounterSync) {
                myActNum = nextOfferNumber;
                ++nextOfferNumber;
                if (nextOfferNumber == Long.MAX_VALUE) {
                    nextOfferNumber = 0;
                }
            }
            while (true) {
                synchronized (queueAccesSynchronizer) {
                    if (myActNum == currentOfferNumber && queue.size() + listToAdd.size() <= maxQueueSize) {
                        break;
                    }
                }
                synchronizer.wait();
            }
            synchronized (queueAccesSynchronizer) {
                queue.addAll(new ArrayList(listToAdd));
            }
            if (interrupter != null) {
                interrupter.interrupt();
            }
        } catch (InterruptedException e) {
        }
        ++currentOfferNumber;
        synchronizer.notifyAll();
    }
}

[Buggy Hunk]
queue.addAll(new ArrayList(listToAdd));

[Patch]
queue.addAll(new LinkedList(listToAdd));

[Demonstration 3]

[Buggy Method]
@Raw
public void setNextPosition(Vector position) throws IllegalArgumentException {
    if (position != null && !isValidPosition(position))
        throw new IllegalArgumentException("Invalid position");
    this.nextPosition = position;
}

[Buggy Hunk]
if (position!=null && ! isValidPosition(position))

[Patch]
if (position!=null && ! isValidNextPosition(this.getPosition(), position))