[Demonstration 1]

[Buggy Method]
static public boolean give(Player player, SingleMap map) {
    return give(player, createMapItem(map.getMapsIDs()[0], map.getName()));
}

[Buggy Hunk]
return give(player, createMapItem(map.getMapsIDs()[0], map.getName()));

[Patch]
return give(player, createMapItem(map));

[Demonstration 2]

[Buggy Method]
private int getRowCount() {
    return (widgets.size() + 1) / columnCount;
}

[Buggy Hunk]
return (widgets.size() + 1) / columnCount;

[Patch]
return (int) (widgets.size() / columnCount + 0.5);

[Demonstration 3]

[Buggy Method]
public StringBuilder buildColumnString(ResultSetMetaData rsMeta, String except) throws SQLException {
    // TODO Auto-generated method stub
    StringBuilder columns = new StringBuilder();
    int columnCount = rsMeta.getColumnCount();
    for (int i = 2; i <= columnCount; i++) {
        if (!rsMeta.getColumnName(i).contains(except)) {
            columns.append(rsMeta.getColumnName(i));
            if (i != columnCount)
                columns.append(",");
        }
    }
    return columns;
}

[Buggy Hunk]
for (int i=2; i <= columnCount ; i++)

[Patch]
for (int i=1; i <= columnCount ; i++)