[Demonstration 1]

[Buggy Method]
public Map<PieceType, PieceType> assumeTypes(final Set<PieceType> types) {
    final Map<PieceType, PieceType> retVal = new HashMap<>(types.size());
    for (final PieceType type : types) {
        switch(type) {
            case QPit:
                retVal.put(type, PieceType.Pit);
                break;
            case QWump:
                retVal.put(type, PieceType.Wumpus);
                break;
        }
    }
    return retVal;
}

[Buggy Hunk]
public Map<PieceType, PieceType> assumeTypes(final Set<PieceType> types) {

[Patch]
private Map<PieceType, PieceType> assumeTypes(final Set<PieceType> types) {

[Demonstration 2]

[Buggy Method]
public void add(int spotToAddMarkTo, String playerMark) {
    boardArray.add(spotToAddMarkTo - 1, playerMark);
}

[Buggy Hunk]
boardArray.add(spotToAddMarkTo-1, playerMark);

[Patch]
boardArray.set(spotToAddMarkTo-1, playerMark);

[Demonstration 3]

[Buggy Method]
public boolean canGoNear(UnitType type) {
    if (type.equals(UnitType.Cannon))
        return true;
    return type.ordinal() - this.ordinal() > 0;
}

[Buggy Hunk]
return type.ordinal() - this.ordinal() > 0;

[Patch]
return type.ordinal() - this.ordinal() < 0;