[Demonstration 1]

[Buggy Method]
@Override
public void completed(final NBiometricTask result, NBiometricOperation attachment) {
    switch(attachment) {
        case IDENTIFY:
            if (result.getStatus() == NBiometricStatus.MATCH_NOT_FOUND) {
                saveFinger();
            } else if (result.getStatus() == NBiometricStatus.OK) {
                boolean single_staff = true;
                String staff_unique = result.getSubjects().get(0).getMatchingResults().get(0).getId();
                staff_unique = staff_unique.substring(0, staff_unique.indexOf('_'));
                for (NMatchingResult matchingResult : result.getSubjects().get(0).getMatchingResults()) {
                    if (!staff_unique.equals(matchingResult.getId().substring(0, matchingResult.getId().indexOf('_')))) {
                        single_staff = false;
                        break;
                    }
                }
                if (single_staff && staff_unique.equals(staff.getUniquenumPri())) {
                    saveFinger();
                } else {
                    setPrompt(PROMPT_FINGER_EXIST);
                }
            } else {
                setPrompt(PROMPT_EXTRACT_FAILED);
            }
            break;
        default:
            break;
    }
}

[Buggy Hunk]
if (result.getStatus() == NBiometricStatus.MATCH_NOT_FOUND) {

[Patch]
if (result.getStatus() == NBiometricStatus.MATCH_NOT_FOUND) {;

[Demonstration 2]

[Buggy Method]
@Override
public boolean remove(int index) {
    if (isEmpty() || checkIndex(index))
        return false;
    if (index == 0)
        return removeFirst();
    if (index == size - 1)
        return removeLast();
    Node deletingNode = head;
    for (int i = 0; i < index; i++) {
        deletingNode = deletingNode.getNext();
    }
    Node prevNode = deletingNode.getPrev();
    Node nextNode = deletingNode.getNext();
    prevNode.setNext(nextNode);
    nextNode.setPrev(prevNode);
    deletingNode = null;
    size--;
    return true;
}

[Buggy Hunk]
if (isEmpty() || checkIndex(index)) return false;

[Patch]
if (isEmpty() || !checkIndex(index)) return false;

[Demonstration 3]

[Buggy Method]
public void bindBitmap(final String uri, final ImageView imageView, final int reqWidth, final int reqHeight) {
    imageView.setTag(TAG_KEY_URI, uri);
    Bitmap bitmap = loadBitmap(uri, reqWidth, reqHeight);
    if (bitmap != null) {
        imageView.setImageBitmap(bitmap);
        return;
    }
    Runnable runnable = new Runnable() {

        @Override
        public void run() {
            Bitmap bitmap = loadBitmap(uri, reqWidth, reqHeight);
            if (bitmap != null) {
                LoaderResult result = new LoaderResult(imageView, uri, bitmap);
                mMainHandler.obtainMessage(MESSAGE_POST_RESULT, result).sendToTarget();
            }
        }
    };
    THREAD_POOL_EXCUTOR.execute(runnable);
}

[Buggy Hunk]
Bitmap bitmap = loadBitmap(uri, reqWidth, reqHeight);

[Patch]
Bitmap bitmap = loadBitmapFromMemoryCache(uri);