[Demonstration 1]

[Buggy Method]
private void displayStatus(final String status) {
    final Runnable runnableUi = new Runnable() {

        @Override
        public void run() {
            TextView textResult = (TextView) findViewById(R.id.sttStatus);
            textResult.setText(status);
        }
    };
    new Thread() {

        public void run() {
            mHandler.post(runnableUi);
        }
    }.start();
}

[Buggy Hunk]
TextView textResult = (TextView)findViewById(R.id.sttStatus);

[Patch]
TextView textResult = (TextView)findViewById(R.id.activity_cooking_sttStatus);

[Demonstration 2]

[Buggy Method]
public static String read_from_file(String s, String charset) throws Exception {
    FileInputStream fp = new FileInputStream(s);
    int c;
    String data = "";
    while ((c = fp.read()) != -1) //convert the data read from file to a string
    data += (char) c;
    data = new String(data.getBytes(), charset);
    fp.close();
    return data;
}

[Buggy Hunk]
public static String read_from_file(String s, String charset) throws Exception

[Patch]
public static String read_from_file(String s, String charset) throws IOException

[Demonstration 3]

[Buggy Method]
public void setStatus(String status) {
    this.status.set(status);
}

[Buggy Hunk]
this.status.set(status);

[Patch]
DUtils.threadSafe(()->this.status.set(status));