[Demonstration 1]

[Buggy Method]
@Override
public void execute(Connection connection) throws SQLException {
    StatementUseDatabase.logger.info("Will execute the code to use " + this.database);
    // If the connection is null
    if (connection == null) {
        IllegalArgumentException iae = new IllegalArgumentException();
        StatementUseDatabase.logger.fatal(Messages.FATAL + "The connection passed to execute the statement " + "cannot be null");
        System.out.println(Messages.FATAL_EXCEPTION_ACTION(iae.getClass().getSimpleName()) + " " + Messages.CHECK_LOG_FILES);
        StatementUseDatabase.logger.warn(Messages.WARNING + "Throwing a " + iae.getClass().getSimpleName() + " to the calling class");
        throw iae;
    }
    // TODO should we catch an exception?
    this.executeSQL(connection);
}

[Buggy Hunk]
System.out.println(Messages.FATAL_EXCEPTION_ACTION(iae.getClass().getSimpleName()) + " "

[Patch]
System.out.println(Messages.FATAL + Messages.FATAL_EXCEPTION_ACTION(iae.getClass().getSimpleName()) + " "

[Demonstration 2]

[Buggy Method]
@Override
protected ResponseEntity<Object> handleExceptionInternal(Exception ex, Object body, HttpHeaders headers, HttpStatus status, WebRequest request) {
    logger.warn(ex.getMessage(), ex);
    return super.handleExceptionInternal(ex, body, headers, status, request);
}

[Buggy Hunk]
logger.warn(ex.getMessage(), ex);

[Patch]
log.warn(ex.getMessage(), ex);

[Demonstration 3]

[Buggy Method]
private void configureSsl(Ssl ssl, int port, Builder builder) {
    try {
        SSLContext sslContext = SSLContext.getInstance(ssl.getProtocol());
        if (sslContextCustomizers.isEmpty()) {
            sslContext.init(getKeyManagers(), getTrustManagers(), null);
        } else {
            for (SslContextCustomizer sslContextCustomizer : this.sslContextCustomizers) {
                sslContextCustomizer.customize(sslContext);
            }
        }
        builder.addHttpsListener(port, getListenAddress(), sslContext);
        builder.setSocketOption(Options.SSL_CLIENT_AUTH_MODE, getSslClientAuthMode(ssl));
        if (ssl.getEnabledProtocols() != null) {
            builder.setSocketOption(Options.SSL_ENABLED_PROTOCOLS, Sequence.of(ssl.getEnabledProtocols()));
        }
        if (ssl.getCiphers() != null) {
            builder.setSocketOption(Options.SSL_ENABLED_CIPHER_SUITES, Sequence.of(ssl.getCiphers()));
        }
    } catch (NoSuchAlgorithmException ex) {
        throw new IllegalStateException(ex);
    } catch (KeyManagementException ex) {
        throw new IllegalStateException(ex);
    }
}

[Buggy Hunk]
if (sslContextCustomizers.isEmpty()) {

[Patch]
if (this.sslContextCustomizers.isEmpty()) {