[Demonstration 1]

[Buggy Method]
@GwtIncompatible("java.util.concurrent.ScheduledExecutorService")
static <V> ListenableFuture<V> withTimeout(ListenableFuture<V> delegate, long time, TimeUnit unit, ScheduledExecutorService scheduledExecutor) {
    TimeoutFuture<V> result = new TimeoutFuture<V>(delegate);
    TimeoutFuture.Fire<V> fire = new TimeoutFuture.Fire<V>(result);
    result.timer = scheduledExecutor.schedule(fire, time, unit);
    delegate.addListener(fire, directExecutor());
    return result;
}

[Buggy Hunk]
static <V> ListenableFuture<V> withTimeout(ListenableFuture<V> delegate,

[Patch]
public static <V> ListenableFuture<V> withTimeout(ListenableFuture<V> delegate,

[Demonstration 2]

[Buggy Method]
@Test
public void testSimple() throws Exception {
    final Task task = new NoopTask(null, 0, 0, null, null, null);
    final SegmentInsertAction action = new SegmentInsertAction(ImmutableSet.of(SEGMENT1, SEGMENT2));
    actionTestKit.getTaskLockbox().add(task);
    actionTestKit.getTaskLockbox().lock(TaskLockType.EXCLUSIVE, task, INTERVAL, 5000);
    actionTestKit.getTaskLockbox().upgrade(task, new Interval(INTERVAL));
    action.perform(task, actionTestKit.getTaskActionToolbox());
    Assert.assertEquals(ImmutableSet.of(SEGMENT1, SEGMENT2), ImmutableSet.copyOf(actionTestKit.getMetadataStorageCoordinator().getUsedSegmentsForInterval(DATA_SOURCE, INTERVAL)));
}

[Buggy Hunk]
actionTestKit.getTaskLockbox().upgrade(task, new Interval(INTERVAL));

[Patch]
actionTestKit.getTaskLockbox().upgrade(task, INTERVAL);

[Demonstration 3]

[Buggy Method]
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_about);
    ButterKnife.inject(this);
    setUpVersionName();
    mCollapsingToolbarLayout.setTitle(getString(R.string.about));
    setSupportActionBar(mToolbar);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    mToolbar.setNavigationOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            AboutActivity.this.onBackPressed();
        }
    });
}

[Buggy Hunk]
mCollapsingToolbarLayout.setTitle(getString(R.string.about));

[Patch]
mCollapsingToolbarLayout.setTitle(getString(R.string.app_name));