[Demonstration 1]

[Buggy Method]
@Override
public void flush() {
    notifyFlush();
    try {
        pool.getSymbols().flush();
    } catch (final EXistException e) {
        LOG.warn(e);
    }
    indexController.flush();
    nodesCount = 0;
}

[Buggy Hunk]
LOG.warn(e);

[Patch]
LOG.error(e);

[Demonstration 2]

[Buggy Method]
public void programTrafficBehaviorRule(Long dpid, TrafficBehavior trafficBehavior, boolean writeFlow) {
    MatchBuilder matchBuilder = new MatchBuilder();
    FlowBuilder flowBuilder = new FlowBuilder();
    if (dpid == 0L) {
        return;
    }
    String nodeName = OPENFLOW + dpid;
    NodeBuilder nodeBuilder = createNodeBuilder(nodeName);
    // Create the OF Actions and Instructions
    InstructionsBuilder isb = new InstructionsBuilder();
    // Instructions List Stores Individual Instructions
    List<Instruction> instructions = Lists.newArrayList();
    // Call the InstructionBuilder Methods Containing Actions
    InstructionBuilder ib = new InstructionBuilder();
    if (trafficBehavior == TrafficBehavior.NeedAcl) {
        //If Traffic Behavior is NeedAcl, the Default action is drop, need Acl to allow traffic
        ib = InstructionUtils.createDropInstructions(ib);
    } else {
        //Default Traffic Behavior is allow traffic goto next table, it has done in Pipeline initialization step
        return;
    }
    ib.setOrder(0);
    ib.setKey(new InstructionKey(0));
    instructions.add(ib.build());
    // Add InstructionBuilder to the Instruction(s)Builder List
    isb.setInstruction(instructions);
    // Add InstructionsBuilder to FlowBuilder
    flowBuilder.setInstructions(isb.build());
    String flowId = "DEFAULT_PIPELINE_FLOW_" + getTable();
    flowBuilder.setId(new FlowId(flowId));
    FlowKey key = new FlowKey(new FlowId(flowId));
    flowBuilder.setMatch(matchBuilder.build());
    flowBuilder.setPriority(0);
    flowBuilder.setBarrier(true);
    flowBuilder.setTableId(getTable());
    flowBuilder.setKey(key);
    flowBuilder.setFlowName(flowId);
    flowBuilder.setHardTimeout(0);
    flowBuilder.setIdleTimeout(0);
    if (writeFlow) {
        writeFlow(flowBuilder, nodeBuilder);
    } else {
        removeFlow(flowBuilder, nodeBuilder);
    }
}

[Buggy Hunk]
flowBuilder.setPriority(0);

[Patch]
flowBuilder.setPriority(TRAFFIC_BEHAVIOR_RULE_PRIORITY);

[Demonstration 3]

[Buggy Method]
public void createAndAddWidgets() {
    this.dataTree = new JTree(this.root);
    this.dataTree.expandRow(0);
    this.dataTree.setRootVisible(false);
    this.dataTree.setEditable(true);
    final JScrollPane scrollPane = new JScrollPane(this.dataTree);
    scrollPane.setBorder(new TitledBorder(OmeroPluginGUIConstants.TREE_TITLE));
    this.add(scrollPane, BorderLayout.CENTER);
}

[Buggy Hunk]
this.dataTree.setEditable(true);

[Patch]
this.dataTree.setEditable(false);