Re: Useless code

From: Kevin Menard (kmenar..ervprise.com)
Date: Tue Sep 06 2005 - 02:09:55 EDT

  • Next message: Kevin Menard: "Re: Confluence Updates?"

    On Sep 6, 2005, at 1:37 AM, Andrus Adamchik wrote:

    > Often exceptions are declared in an interface, but not thrown in
    > some implementations. If you can give some examples, I can comment
    > more intelligently.

    Sure.

    DataContextCommitAction has a bunch of methods that declare that they
    throw CayenneException, but do not. This does not seem to be
    interface or superclass related. As a specific example, see
    prepareInsertQueries() in this class.

    DefaultResultIterator has a few methods that are declared to throw
    CayenneException or SQLException, but never do. Examples again are:
    checkNextRow() and readDataRow().

    ConfigLoader has a bunch of methods declared to throw SAXExceptions
    but never do.

    There numerous other such cases.

    -- 
    Kevin
    



    This archive was generated by hypermail 2.0.0 : Tue Sep 06 2005 - 02:09:59 EDT