[Demonstration 1]

[Buggy Method]
public void setHeightOfFooter(int heightOfFooter) {
    this.heightOfFooter = heightOfFooter;
    resizeHeightOfFooter(this.heightOfFooter);
}

[Buggy Hunk]
resizeHeightOfFooter(this.heightOfFooter);

[Patch]
resizeFooter(this.heightOfFooter);

[Demonstration 2]

[Buggy Method]
@Override
public void receiveMessage(String ip, byte[] message) {
    if (ip == null || message == null)
        throw new NullPointerException();
    byte parsedMessage = parseMessage(message);
    notifyInfoRequest(ip, parsedMessage);
}

[Buggy Hunk]
public void receiveMessage(String ip, byte[] message) {

[Patch]
public void receiveMessage(String ip, byte[] message) throws SQLException {

[Demonstration 3]

[Buggy Method]
public Event<?> get() {
    /*
     * If you see a compile error here, ensure that you are using Errai's custom
     * version of javax.enterprise.event.Event, which comes from the
     * errai-javax-enterprise project. The errai-cdi-client POM is set up this
     * way.
     * 
     * Eclipse users: seeing an error here probably indicates that M2E has
     * clobbered your errai-javax-enterprise source folder settings. To fix your
     * setup, see the README in the root of errai-javax-enterprise.
     */
    return new Event<Object>() {

        private Class<?> eventType = (context.getTypeArguments().length == 1 ? context.getTypeArguments()[0] : Object.class);

        private Conversation conversation;

        private Annotation[] _qualifiers = context.getQualifiers();

        public void fire(Object event) {
            if (event == null)
                return;
            if (conversation != null && !conversation.isActive()) {
                conversation.begin();
            }
            CDI.fireEvent(event, _qualifiers);
        }

        @Override
        public Event<Object> select(Annotation... qualifiers) {
            throw new RuntimeException("use of event selectors is unsupported");
        }

        @Override
        public <U extends Object> Event<U> select(Class<U> subtype, Annotation... qualifiers) {
            throw new RuntimeException("use of event selectors is unsupported");
        }

        public Class getEventType() {
            return eventType;
        }

        public Annotation[] getQualifiers() {
            return _qualifiers;
        }

        public void registerConversation(Conversation conversation) {
            endActiveConversation();
            this.conversation = conversation;
        }

        public void endActiveConversation() {
            if (conversation != null && conversation.isActive()) {
                conversation.end();
            }
        }
    };
}

[Buggy Hunk]
public Event<?> get() {

[Patch]
public Event get() {