[Demonstration 1]

[Buggy Method]
@Override
public void bind(NetworkListFragmentContract.View view) {
    this.view = view;
    this.connectionStateChangeSubscribtion = wifiStateProvider.getConnectionStateChangeObservable().compose(RxUtil.applyLog(TAG)).compose(RxUtil.applySchedulers()).subscribe(connectionState -> view.displayConnectionState(connectionState));
}

[Buggy Hunk]
.subscribe(connectionState -> view.displayConnectionState(connectionState));

[Patch]
.subscribe(view::displayConnectionState);

[Demonstration 2]

[Buggy Method]
@Override
public void run() {
    try {
        logger.info("Trying to establish a connection with the robot.");
        socket = new Socket(hexapod.ip, 80);
        OutputStream outputStream = getOutputStream();
        BufferedOutputStream buffOutStream = new BufferedOutputStream(outputStream, 30);
        logger.info("Connection established.");
        while (connected) {
            Thread.sleep(sleepingInterval);
            buffOutStream.write(hexapod.curr_packet.toByteArray());
            buffOutStream.flush();
        }
    } catch (IOException e) {
        logger.warning("Socket IOExceptopn while getting OutputStream.");
    } catch (InterruptedException e) {
        logger.info("Socket InterruptedException. PacketSender finishing !");
    } finally {
        try {
            logger.info("Connection with the robot closed.");
            socket.close();
        } catch (IOException e) {
            logger.warning("IOException while closing the socket");
        }
    }
}

[Buggy Hunk]
socket.close();

[Patch]
if(socket != null) socket.close();

[Demonstration 3]

[Buggy Method]
public void editPost(String postText, String postEdit) {
    clickActionOnPost("Menu", postText);
    clickPostToEdit();
    setEditTextAreaField(postEdit);
    clickSaveEdition();
}

[Buggy Hunk]
clickActionOnPost("Menu", postText);

[Patch]
clickActionOnPost(ChatterActions.MENU, postText);