[Demonstration 1]

[Buggy Method]
@Override
public void fetchAndStoreQuotes(int numberOfQuotes) throws IOException {
    clearOutputDirectory();
    QuoteClient client = new QuoteClient();
    for (int i = 0; i < numberOfQuotes; i++) {
        Quote quote = client.fetchQuote();
        storeQuote(quote, "quote-" + i + ".utf8");
        LOG.info("Received a new joke with " + quote.getTags().size() + " tags.");
        for (String tag : quote.getTags()) {
            LOG.info("> " + tag);
        }
    }
}

[Buggy Hunk]
storeQuote(quote, "quote-" + i + ".utf8");

[Patch]
storeQuote(quote, "quote-" + i);

[Demonstration 2]

[Buggy Method]
@Override
@WebMethod
public int[][] getRecDate() {
    return recordDAO.getRecordDate();
}

[Buggy Hunk]
public int[][] getRecDate() {

[Patch]
public String[][] getRecDate() {

[Demonstration 3]

[Buggy Method]
@Override
public FileObject getFileObject() {
    final ImagePlus cIP = this.ip;
    return new FileObject() {

        @Override
        public byte[] getData() {
            return new byte[0];
        }

        @Override
        public String[] getText() {
            return new String[0];
        }

        @Override
        public InputStream getInputStream() {
            return null;
        }

        @Override
        public OutputStream getOutputStream() {
            return null;
        }
    };
}

[Buggy Hunk]
public OutputStream getOutputStream() {

[Patch]
public OutputStream getOutputStream(boolean append) {