[Demonstration 1]

[Buggy Method]
public List<List> getAllFeed() {
    List<List> update = new ArrayList<>();
    // Select All Query
    String selectQuery = "SELECT * FROM " + TABLE_FEED;
    SQLiteDatabase db = this.getReadableDatabase();
    Cursor cursor = db.rawQuery(selectQuery, null);
    // looping through all rows and adding to list
    if (cursor.moveToFirst()) {
        do {
            List c = new ArrayList<>();
            c.add(cursor.getString(1));
            c.add(cursor.getString(2));
            c.add(cursor.getString(3));
            // Adding contact to list
            update.add(c);
        } while (cursor.moveToNext());
    }
    System.out.println("FEED: " + cursor.getCount());
    cursor.close();
    Log.d(TAG, "ALL FEED");
    return update;
}

[Buggy Hunk]
List c = new ArrayList<>();

[Patch]
List<String> c = new ArrayList<String>();

[Demonstration 2]

[Buggy Method]
public void parseFile(File dir, String filename, boolean output) throws IOException {
    filename = filename.trim();
    log(INFO, "Parsing " + dir.toString().replace('\\', '/') + "/" + filename);
    pushVarMap("File:" + filename);
    File file = new File(dir, filename);
    int pos0 = filename.lastIndexOf('.');
    String filebase = filename.substring(0, pos0);
    addProp("FILENAME", filename);
    addProp("FILEBASE", filebase);
    if (output && out == null)
        changeOutputFile(file.getParentFile(), filebase + ".out");
    BufferedReader inp = null;
    int linenr = 0;
    boolean done = false;
    try {
        inp = new BufferedReader(new FileReader(file));
        String line;
        while ((line = inp.readLine()) != null) {
            linenr++;
            if (line.startsWith("@MACRO")) {
                String name = line.substring(6).trim();
                StringBuilder macro = new StringBuilder();
                while ((line = inp.readLine()) != null) {
                    linenr++;
                    if (line.trim().startsWith("@ENDMACRO"))
                        break;
                    else
                        macro.append(line + "\n");
                }
                addProp(name, macro.toString());
                continue;
            }
            if (line.indexOf('=') > 0 && !output) {
                line = substitute(line);
                parseProp(line.trim());
            } else
                line = parseLine(file.getParentFile(), line);
            if (line == null)
                continue;
            else if (line.startsWith("@LOAD"))
                loadDefinitions(file.getParentFile(), line.substring(5));
            else if (output)
                out.println(line);
        }
        done = true;
    } finally {
        if (!done)
            System.err.println("ERROR at " + filename + ":" + linenr);
        if (inp != null)
            inp.close();
    }
}

[Buggy Hunk]
filename=filename.trim();

[Patch]
filename=filename.trim().replace('\\','/');