[Demonstration 1]

[Buggy Method]
public void destroy() throws PlatformException {
    // reset the Hystrix instance
    Hystrix.reset();
    // now shutdown all task handlers
    for (AbstractHandlerRegistry<T> registry : registries) {
        try {
            registry.shutdown(taskContext);
        } catch (Exception e) {
            LOGGER.warn("Error shutting down registry: " + registry.getClass().getName());
        }
    }
    // finally close the context
    for (HandlerConfigInfo handlerConfigInfo : this.handlerConfigInfoList) {
        handlerConfigInfo.getProxyHandlerContext().close();
    }
    this.handlerConfigInfoList = null;
}

[Buggy Hunk]
LOGGER.warn("Error shutting down registry: " + registry.getClass().getName());

[Patch]
LOGGER.warn("Error shutting down registry: {}", registry.getClass().getName(), e);

[Demonstration 2]

[Buggy Method]
@Override
public Attribute updateValue(String newValue) {
    return new NumberAttribute(this.getName(), newValue);
}

[Buggy Hunk]
return new NumberAttribute(this.getName(), newValue);

[Patch]
return new NumberAttribute(this.getName(), toInt(newValue));

[Demonstration 3]

[Buggy Method]
@Override
public String doInBackground() throws Exception {
    String updatedVersion = null;
    try {
        updatedVersion = Updater.getLatestVersion();
    } catch (Exception e1) {
        e1.printStackTrace();
        MAMUtil.writeLog(e1);
    }
    return updatedVersion;
}

[Buggy Hunk]
catch (Exception e1)

[Patch]
catch (java.net.ConnectException | java.net.UnknownHostException e1)