[Demonstration 1]

[Buggy Method]
@Override
public void loadTasks(final CustomLiveData<List<Task>> liveTasks) {
    new AsyncTask<Void, Void, List<Task>>() {

        @Override
        protected List<Task> doInBackground(Void... params) {
            return mApplication.mDatabase.taskDao().getAll();
        }

        @Override
        protected void onPostExecute(List<Task> tasks) {
            liveTasks.forceStorageInLocalDatabaseOnNewData(false);
            List<Task> taskList = liveTasks.getLivedataValue();
            if (taskList == null) {
                taskList = new ArrayList<>();
            }
            taskList.addAll(tasks);
            liveTasks.setLivedataValue(taskList);
        }
    }.execute();
}

[Buggy Hunk]
liveTasks.forceStorageInLocalDatabaseOnNewData(false);

[Patch]
liveTasks.setTaskOrigin(FireflyConstants.TaskOrigin.FROM_DB);

[Demonstration 2]

[Buggy Method]
ConnectionGene setWeight(float w) {
    return new ConnectionGene(c.from, c.to, w, c.enabled, c.id);
}

[Buggy Hunk]
return new ConnectionGene(c.from,c.to,w,c.enabled,c.id);

[Patch]
return new ConnectionGene(this.from,this.to,w,this.enabled,this.id);

[Demonstration 3]

[Buggy Method]
@Override
public SmbDir openDir(String uri) throws IOException {
    try (final MessageValues<SmbDir> messageValues = MessageValues.obtain()) {
        final Message msg = obtainMessage(READ_DIR, messageValues, uri);
        enqueue(msg);
        return messageValues.getObj();
    }
}

[Buggy Hunk]
return messageValues.getObj();

[Patch]
return new SambaDirClient(mHandler.getLooper(), messageValues.getObj());