[Demonstration 1]

[Buggy Method]
public void setAccumulatedTime(long _accumulatedTime) {
    accumulatedTime = _accumulatedTime;
}

[Buggy Hunk]
public void setAccumulatedTime(long _accumulatedTime) {

[Patch]
public void setAccumulatedTime(final long _accumulatedTime) {

[Demonstration 2]

[Buggy Method]
@Override
public boolean addDestinationNode(IndiNode in) {
    String nodeId = in.getNodeId();
    if (!this.destinationNodes.containsKey(nodeId)) {
        this.destinationNodes.put(nodeId, in);
        // if the other node is also a decision node
        if (in.getType() == IndiNodeType.DECISION) {
            String indoNodeId = this.getNodeId() + "_" + nodeId;
            IndiNodeDecisionOption indo = new IndiNodeDecisionOption(indoNodeId, this);
            indo.setName(nodeId + " - " + in.getName());
            this.implicitOptions.put(indoNodeId, indo);
        }
        return true;
    } else {
        return false;
    }
}

[Buggy Hunk]
this.implicitOptions.put(indoNodeId, indo);

[Patch]
this.implicitOptions.put(nodeId, indo);

[Demonstration 3]

[Buggy Method]
@SuppressWarnings("unchecked")
@Override
public boolean addChild(IJp2pComponent<?> child) {
    if (containers.contains(child))
        return false;
    containers.add((IJp2pContainer<T>) child);
    IJp2pContainer<?> container = (IJp2pContainer<?>) child;
    container.getDispatcher().addServiceChangeListener(listener);
    Collections.sort(containers, new Jp2pServiceComparator<Object>());
    return true;
}

[Buggy Hunk]
public boolean addChild(IJp2pComponent<?> child) {

[Patch]
public synchronized boolean addChild(IJp2pComponent<?> child) {