[Demonstration 1]

[Buggy Method]
@Override
public boolean equals(Object obj) {
    if (getClass().equals(obj.getClass())) {
        Place p = (Place) (obj);
        if (data == null) {
            return p.getData() == null;
        } else {
            return data.equals(p.getData());
        }
    } else {
        return false;
    }
}

[Buggy Hunk]
if (getClass().equals(obj.getClass())) {

[Patch]
if (obj != null && getClass().equals(obj.getClass())) {

[Demonstration 2]

[Buggy Method]
private Entity getEntityByUUID(UUID uuid) {
    for (Entity entity : (List<Entity>) this.worldObj.loadedEntityList) {
        if (uuid.equals(entity.getUniqueID())) {
            return entity;
        }
    }
    return null;
}

[Buggy Hunk]
for(Entity entity : (List<Entity>) this.worldObj.loadedEntityList) {

[Patch]
for(Entity entity : (List<Entity>) this.worldObj.getEntitiesWithinAABB(Entity.class, this.getEntityBoundingBox().expand(24, 24, 24))) {

[Demonstration 3]

[Buggy Method]
private void updateNoneStPurchaseTable(RotateItem rotateItem) {
    noneStPurchaseTableView.getItems().clear();
    if (rotateItem.isDuplicate()) {
        ObservableList<PurchaseItem> obsList;
        if (rotateItem.isKit() && showAllParts) {
            obsList = rotateItem.getKitNode().getNoneStPurchaseItemList();
        } else {
            obsList = rotateItem.getNoneStockPurchaseItemObsList();
        }
        noneStPurchaseTableView.setItems(obsList);
        if (obsList.size() > 0) {
            noneStPurchaseTableView.getSelectionModel().select(0, noneStPurchaseApQtyColumn);
        }
    }
    updateNoneStPurchaseTableTotal();
}

[Buggy Hunk]
noneStPurchaseTableView.getItems().clear();

[Patch]
noneStPurchaseTableView.setItems(emptyPurchaseList);