[Demonstration 1]

[Buggy Method]
public int subtracion(Object firstElement, Object secondElement) {
    if (firstElement == null || secondElement == null) {
        return -1;
    }
    if ((firstElement instanceof Integer || firstElement instanceof Long || firstElement instanceof Double || firstElement instanceof Float) && (secondElement instanceof Integer || secondElement instanceof Long || secondElement instanceof Double || secondElement instanceof Float)) {
        Number first = (Number) firstElement;
        Number second = (Number) secondElement;
        return Math.abs(Math.abs(first.intValue()) - Math.abs(second.intValue()));
    } else {
        throw new IllegalArgumentException("Expected a numeric element/s");
    }
}

[Buggy Hunk]
return Math.abs(Math.abs(first.intValue()) - Math.abs(second.intValue()));

[Patch]
return (int)Math.abs(Math.abs(first.intValue()) - Math.abs(second.intValue()));

[Demonstration 2]

[Buggy Method]
public AnimationHelper hideItem() {
    this.heigthView = this.itemView.getHeight();
    this.widthView = this.itemView.getWidth();
    this.isShow = false;
    initAnimation(getInitialHeigthView(), getInitialWidthView(), false);
    Log.i(AnimationHelper.class.getName(), "hideItem");
    startAnimation();
    return this;
}

[Buggy Hunk]
initAnimation(getInitialHeigthView(), getInitialWidthView(), false);

[Patch]
initAnimation(false);

[Demonstration 3]

[Buggy Method]
void CheckBlockIndentation() {
    DeclareCheckerMethod("CheckBlockIndentation");
    int properIndent = 0;
    for (int ln = 0; ln < this.FileContents.length; ln++) {
        if (countLeadingSpaces(this.FileContents[ln]) != properIndent && this.FileContents[ln].length() > 0) {
            this.AppendToReport("Improper indentation at line " + (ln + 1) + ".");
            this.NumErrors++;
        }
        if (this.FileContents[ln].contains("{")) {
            properIndent += 3;
        } else if (this.FileContents[ln].contains("{")) {
            properIndent -= 3;
        }
    }
}

[Buggy Hunk]
this.AppendToReport("Improper indentation at line " + (ln + 1) + ".");

[Patch]
this.AppendToReport("Improper indentation at line " + GetLnNum(ln) + ".");