[Demonstration 1]

[Buggy Method]
@Override
public void dragOver(DropTargetEvent event) {
    final DragObject droppedObj = transfer.getSelection() != null ? ((DragObject) ((StructuredSelection) transfer.getSelection()).getFirstElement()) : null;
    if (droppedObj != null) {
        droppedObj.indicate(event.x, event.y);
    }
}

[Buggy Hunk]
droppedObj.indicate(event.x, event.y);

[Patch]
droppedObj.indicate(x=event.x, y=event.y);

[Demonstration 2]

[Buggy Method]
@Override
public void commit(IProgressMonitor monitor) throws CoreException {
    _switchYardProject.readLock();
    try {
        if (!isModified()) {
            monitor.done();
            return;
        }
        monitor.beginTask(Messages.SwitchYardProjectWorkingCopy_taskMessage_updatingProjectPOM, 300);
        IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 100, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK);
        final List<Operation> updateOperations = processUpdates(subMonitor);
        if (updateOperations.size() > 0) {
            subMonitor.done();
            subMonitor = new SubProgressMonitor(monitor, 100, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK);
            try {
                updatePom(updateOperations);
            } catch (IOException e) {
                throw new CoreException(new Status(Status.ERROR, Activator.PLUGIN_ID, "Could not update pom.xml", e));
            }
            subMonitor.done();
        }
        subMonitor.done();
        final List<Operation> updateFeatureOperations = processFeatureUpdates(subMonitor);
        if (updateFeatureOperations.size() > 0) {
            subMonitor.done();
            subMonitor = new SubProgressMonitor(monitor, 100, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK);
            try {
                updateFeatures(updateFeatureOperations);
            } catch (IOException e) {
                throw new CoreException(new Status(Status.ERROR, Activator.PLUGIN_ID, "Could not update features.xml", e));
            }
            subMonitor.done();
        }
        subMonitor.done();
        monitor.done();
    } finally {
        _switchYardProject.readUnlock();
        _switchYardProject.getSwitchYardFeaturesFile().refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
        refreshProject(new NullProgressMonitor());
    }
}

[Buggy Hunk]
refreshProject(new NullProgressMonitor());

[Patch]
M2EUtils.refreshProject(_switchYardProject.getProject(), new NullProgressMonitor());

[Demonstration 3]

[Buggy Method]
public boolean rebuild(Project project) {
    return cleanAll(project) && executeTask(project);
}

[Buggy Hunk]
return cleanAll(project) && executeTask(project);

[Patch]
return executeTask(project, true);