[Demonstration 1]

[Buggy Method]
public static Geometry getZonesCombined(Integer... ids) {
    final boolean getAll = ids.length == 0;
    final ItemMap<Zone> zones = EventManager.getItemMap(MapLink.ZONES);
    Geometry result = JTSUtils.EMPTY;
    List<Integer> idList = Arrays.asList(ids);
    for (Zone zone : zones) {
        if (getAll || idList.contains(zone.getID())) {
            result = result.union(zone.getMultiPolygon());
        }
    }
    return result;
}

[Buggy Hunk]
public static Geometry getZonesCombined(Integer... ids) {

[Patch]
public static Geometry getZonesCombined(final Integer... ids) {

[Demonstration 2]

[Buggy Method]
public static <T extends Comparable<T>> void quickSort(T[] elements) {
    pivot(elements);
}

[Buggy Hunk]
pivot(elements);

[Patch]
quickSort(elements, 0, elements.length - 1);

[Demonstration 3]

[Buggy Method]
@Override
public void delWidget(int oldId) {
    List<Integer> ids = this.getIds();
    if (!ids.contains(oldId)) {
        return;
    }
    ids.remove(oldId);
    this.setIds(ids);
}

[Buggy Hunk]
ids.remove(oldId);

[Patch]
ids.remove((Integer) oldId);  // Need to cast otherwise 'remove' uses location