Change behavior of existing rule

Help
2010-08-24
2013-02-05
  • Jorgen Rapp
    Jorgen Rapp
    2010-08-24

    Can anyone point me to how I can change an existing rule to not report an error?

    In this case I get a bug about not closing a db resource:

    ODR_OPEN_DATABASE_RESOURCE  (ODR, BAD_PRACTICE):  Method may fail to close database resource

    I use our own close method which handles all that, how can I get findbugs to realize that?

    }finally {
                DbUtil.close(connection, statement, resultset);
            }