I have missing about close PreparedStatement in code. I want to find all function same problem => How to setting warning missing release resource in eclipse? I try to Window -> Preference -> Java -> Compiler -> Errors/Warning -> Resource Leak but it not active.
private void insertData(String userName)
throws SQLException {
PreparedStatement ps = null;
ps = con.prepareStatement(INSERT_DATA);
ps.setString(1, userName);
// SQL execution
ps.executeUpdate();
}
Thank all