[Demonstration 1]

[Buggy Method]
@Override
public int getItemCount() {
    return boards.keySet().size();
}

[Buggy Hunk]
return boards.keySet().size();

[Patch]
return boards.size();

[Demonstration 2]

[Buggy Method]
@Override
public ConsumingProcessorSocket<A> getSocket() {
    if (socket == null) {
        throw new IllegalStateException("No socket set for " + this.getClass() + ".");
    } else {
        return socket;
    }
}

[Buggy Hunk]
public ConsumingProcessorSocket<A> getSocket() {

[Patch]
public ProcessorSocket<A, Object> getSocket() {

[Demonstration 3]

[Buggy Method]
public synchronized Socket getSocket() {
    return client;
}

[Buggy Hunk]
public synchronized Socket getSocket() {

[Patch]
public Socket getSocket() {