Re: svn commit: r764019 - /cayenne/main/trunk/framework/maven-cayenne-plugin/src/main/java/org/apache/cayenne/tools/DbImporterMojo.java

From: Kevin Menard (nirvdru..mail.com)
Date: Sat Apr 11 2009 - 09:12:12 EDT

  • Next message: Kevin Menard: "Re: maven plugin for importing DB schema"

    On Sat, Apr 11, 2009 at 5:51 AM, Andrus Adamchik <andru..bjectstyle.org>wrote:

    > I like final.
    >>
    >
    > Why? Is there any proof of better performance if you declare local
    > variables as final? Otherwise this seems like cluttering the code.
    >
    > Andrus

    I think there are some performance benefits, but they're minimal at best.
    It's mostly a safety issue . . . to make sure a variable is assigned to
    once. It's the same reason I like const in C++. I like Scala's approach to
    variable assignment in this regard.

    -- 
    Kevin
    



    This archive was generated by hypermail 2.0.0 : Sat Apr 11 2009 - 09:12:44 EDT