db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/src/java/org/apache/torque/om NumberKey.java
Date Wed, 30 Apr 2003 17:42:08 GMT
mpoeschl    2003/04/30 10:42:08

  Modified:    src/java/org/apache/torque/om NumberKey.java
  Log:
  optimize NumberKey(int)
  
  Revision  Changes    Path
  1.17      +3 -3      db-torque/src/java/org/apache/torque/om/NumberKey.java
  
  Index: NumberKey.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/java/org/apache/torque/om/NumberKey.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- NumberKey.java	21 Mar 2003 17:31:08 -0000	1.16
  +++ NumberKey.java	30 Apr 2003 17:42:07 -0000	1.17
  @@ -133,13 +133,13 @@
   
       /**
        * Creates a NumberKey equivalent to <code>key</code>.
  -     * Convenience only. Not very efficient at all.
  +     * Convenience only.
        *
        * @param key the key value
        */
       public NumberKey(int key)
       {
  -        this.key = new BigDecimal(String.valueOf(key));
  +        this((long) key);
       }
   
       /**
  
  
  

Mime
View raw message