[Demonstration 1]

[Buggy Method]
public void store(final File file, final String salt, final int iterations) throws IOException {
    String toStore = "#" + new SimpleDateFormat("MMMM dd, yyyy hh:mm:ss aa").format(new Date()) + "\r\n";
    for (final String key : map.keySet()) {
        toStore += key + "=" + map.get(key) + "\r\n";
    }
    final FileWriter fw = new FileWriter(file);
    try {
        fw.write(SecurityUtility.encrypt(toStore, salt, iterations));
    } catch (final Exception e) {
        Configuration.displayError(e, "Error");
    }
    fw.flush();
    fw.close();
}

[Buggy Hunk]
fw.write(SecurityUtility.encrypt(toStore, salt, iterations));

[Patch]
fw.write(SecurityUtility.encrypt(toStore, salt));

[Demonstration 2]

[Buggy Method]
public static List<Item> getAllBillItems(Bill i_bill) {
    List<Item> items = JDBCItemDAO.getAllItems(i_bill);
    return items;
}

[Buggy Hunk]
List<Item> items = JDBCItemDAO.getAllItems(i_bill);

[Patch]
List<Item> items = JDBCItemDAO.getInstance().getAllItems(i_bill);

[Demonstration 3]

[Buggy Method]
private void sell() {
    new Thread(new Runnable() {

        @Override
        public void run() {
            float price;
            try {
                price = Float.parseFloat(itemPriceTextField.getText());
            } catch (NumberFormatException e) {
                return;
            }
            if (itemNameTextField.getText().equals(""))
                return;
            Item item;
            try {
                item = new Item(itemNameTextField.getText(), price, user.getName());
                String result = market.SellItem(item).message;
                statusChanged(result);
            } catch (RemoteException ex) {
                Logger.getLogger(ClientPanel.class.getName()).log(Level.SEVERE, null, ex);
                statusChanged("Remote exception");
            }
        }
    }).start();
}

[Buggy Hunk]
String result=market.SellItem(item).message;

[Patch]
String result=market.sellItem(item).message;