Re: svn commit: r605850 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/ apache/cayenne: ./ access/ access/jdbc/ access/types/ dba/ dba/openbase/ dba/oracle/ dba/sqlite/ dba/sqlserver/ exp/parser/ query/ reflect/ util/ wocompat/

From: Kevin Menard (kmenar..ervprise.com)
Date: Thu Dec 20 2007 - 08:35:24 EST

  • Next message: Tore Halset: "Re: svn commit: r605850 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/ apache/cayenne: ./ access/ access/jdbc/ access/types/ dba/ dba/openbase/ dba/oracle/ dba/sqlite/ dba/sqlserver/ exp/parser/ query/ reflect/ util/ wocompat/"

    On 12/20/07 7:06 AM, "Tore Halset" <halse..vv.ntnu.no> wrote:

    >
    > I am currently -1 to autoboxing, but Integer.valueOf(int) should not
    > be a problem for anyone.

    Why is that? I was just about to commit changes that replaces all of the
    explicit unboxing and boxing code with autoboxing. This would improve code
    clarity in various places.

    Autoboxing yields nearly identical bytecode to manual boxing/unboxing
    operations. The only time I've found it's problematic is when you forget
    what type you're working with to the point that you really should be using
    the object type or the primitive type natively.

    -- 
    Kevin
    



    This archive was generated by hypermail 2.0.0 : Thu Dec 20 2007 - 08:35:58 EST