[Demonstration 1]

[Buggy Method]
public void update(final Author author) {
    this.dataAcces.update(author);
}

[Buggy Hunk]
this.dataAcces.update(author);

[Patch]
this.dataAccess.update(author);

[Demonstration 2]

[Buggy Method]
private String equalTo(String operand1, String operand2) {
    return operand1.equals(operand2) ? TRUE : FALSE;
}

[Buggy Hunk]
private String equalTo(String operand1, String operand2) {

[Patch]
public static String equalTo(String operand1, String operand2) {

[Demonstration 3]

[Buggy Method]
public static void insertTeam() {
    Connection con = null;
    Statement st = null;
    ResultSet rs = null;
    BufferedReader in = null;
    try {
        in = new BufferedReader(new FileReader(file));
        String zeile = null;
        zeile = in.readLine();
        while ((zeile = in.readLine()) != null) {
            String[] values = zeile.split(",");
            //System.out.println("Gelesene Zeile: " + values[0] + values[1]);
            boolean exsist = false;
            try {
                con = DriverManager.getConnection(url, user, password);
                st = con.createStatement();
                rs = st.executeQuery("SELECT \"name\" FROM \"team\" WHERE \"name\"='" + values[1] + "'");
                if (rs.next()) {
                    exsist = true;
                }
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally {
                try {
                    if (rs != null) {
                        rs.close();
                    }
                    if (st != null) {
                        st.close();
                    }
                    if (con != null) {
                        con.close();
                    }
                } catch (SQLException ex) {
                    ex.printStackTrace();
                }
            }
            if (!exsist) {
                try {
                    PreparedStatement pst = null;
                    con = DriverManager.getConnection(url, user, password);
                    st = con.createStatement();
                    String stm = "INSERT INTO \"team\"(\"group\", \"name\") VALUES(?, ?)";
                    pst = con.prepareStatement(stm);
                    pst.setString(1, values[0]);
                    pst.setString(2, values[1]);
                    pst.executeUpdate();
                } catch (SQLException ex) {
                    ex.printStackTrace();
                } finally {
                    try {
                        if (rs != null) {
                            rs.close();
                        }
                        if (st != null) {
                            st.close();
                        }
                        if (con != null) {
                            con.close();
                        }
                    } catch (SQLException ex) {
                        ex.printStackTrace();
                    }
                }
            }
        }
    } catch (IOException e) {
        e.printStackTrace();
    } finally {
        if (in != null)
            try {
                in.close();
            } catch (IOException e) {
            }
    }
}

[Buggy Hunk]
rs = st.executeQuery("SELECT \"name\" FROM \"team\" WHERE \"name\"='" + values[1] + "'");

[Patch]
rs = st.executeQuery("SELECT \"name\" FROM \"team\" WHERE \"name\"='" + StringEscapeUtils.escapeSql(values[1]) + "'");