[Demonstration 1]

[Buggy Method]
private static String getOutput(InputStream is, String title) {
    try (BufferedReader reader = new BufferedReader(new InputStreamReader(is, Charset.defaultCharset()))) {
        StringBuffer output = new StringBuffer();
        String line = "";
        while ((line = reader.readLine()) != null) {
            output.append(line + "\n");
        }
        String out = output.toString();
        return out.isEmpty() ? "" : "===== " + title + " =====\n" + out;
    } catch (IOException ioe) {
        LOGGER.error("A problem was encountered while reading in the output of the command: " + ioe.getMessage(), ioe);
        return "";
    }
}

[Buggy Hunk]
private static String getOutput(InputStream is, String title) {

[Patch]
private static String getOutput(final InputStream is, final String title) {

[Demonstration 2]

[Buggy Method]
private static void writeMessage(PrintWriter writer, Message message) {
    String text = message.getText().replaceAll("\"", "\\\\\"").replaceAll("\"", "\\\\\"").replaceAll("/", "\\\\/").replaceAll("\b", "\\\\b").replaceAll("\f", "\\\\f").replaceAll("\n", "\\\\n").replaceAll("\r", "\\\\r").replaceAll("\t", "\\\\t");
    writer.print("{ \"nickname\": \"");
    writer.print(message.getNickname());
    writer.print("\", \"text\": \"");
    writer.print(text);
    writer.print("\" }");
}

[Buggy Hunk]
.replaceAll("\"", "\\\\\"")

[Patch]
.replaceAll("\\\\", "\\\\\\\\")

[Demonstration 3]

[Buggy Method]
@Override
public void run() {
    RecipeAdapter adapter = new RecipeAdapter(RecipeFragment.this.getContext(), mRecipes);
    mRecipeGridView.setAdapter(adapter);
}

[Buggy Hunk]
mRecipeGridView.setAdapter(adapter);

[Patch]
mRecyclerView.setAdapter(adapter);