[Demonstration 1]

[Buggy Method]
public static int quantidadeLinhas(File file) {
    LineNumberReader linhaLeitura = null;
    try {
        linhaLeitura = new LineNumberReader(new FileReader(file));
        linhaLeitura.skip(file.length());
    } catch (FileNotFoundException ex) {
        Logger.getLogger(Util.class.getName()).log(Level.SEVERE, null, ex);
    } catch (IOException ex) {
        Logger.getLogger(Util.class.getName()).log(Level.SEVERE, null, ex);
    } finally {
        try {
            linhaLeitura.close();
        } catch (IOException ex) {
            Logger.getLogger(Util.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    return linhaLeitura.getLineNumber() + 1;
}

[Buggy Hunk]
return linhaLeitura.getLineNumber() + 1;

[Patch]
return linhaLeitura.getLineNumber() ;

[Demonstration 2]

[Buggy Method]
public PolicyFailure unsupportedJwt(IPolicyContext context, UnsupportedJwtException e) {
    return createAuthenticationPolicyFailure(context, AUTH_JWT_UNSUPPORTED_JWT, //$NON-NLS-1$
    Messages.getString("JWTPolicy.NoTransportSecurity"));
}

[Buggy Hunk]
Messages.getString("JWTPolicy.NoTransportSecurity")); //$NON-NLS-1$

[Patch]
e.getLocalizedMessage());

[Demonstration 3]

[Buggy Method]
private void log(final String message) {
    if (LogConfiguration.loggingIsEnabled()) {
        LOGGER.log(Level.SEVERE, message);
    }
}

[Buggy Hunk]
LOGGER.log(Level.SEVERE, message);

[Patch]
LOGGER.log(Level.INFO, message);