8.9.2 Releasing SQLWarning objects
SQLWarning objects are accumulated as a chain linked to the method's object (Connection, Statement, PreparedStatement, and ResultSet) that triggers the warning reports.
To release accumulated SQLWarning objects explicitly, execute the clearWarnings method for the method's object that triggered the warnings.