db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: db-torque/src/generator/src/java/org/apache/torque/engine/database/model Index.java
Date Tue, 09 Dec 2003 02:15:49 GMT
dlr         2003/12/08 18:15:49

  Modified:    src/generator/src/java/org/apache/torque/engine/database/model
                        Index.java
  Log:
  * src/generator/src/java/org/apache/torque/engine/database/model/Index.java
    Index(Table, List): Use !isEmpty() over size() > 0, as it allows for
    Collection implementation-internal performance optimization.
  
  Revision  Changes    Path
  1.4       +2 -2      db-torque/src/generator/src/java/org/apache/torque/engine/database/model/Index.java
  
  Index: Index.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/database/model/Index.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -u -r1.3 -r1.4
  --- Index.java	1 Dec 2003 16:56:30 -0000	1.3
  +++ Index.java	9 Dec 2003 02:15:48 -0000	1.4
  @@ -108,7 +108,7 @@
       {
           this();
           setTable(table);
  -        if (indexColumns.size() > 0)
  +        if (!indexColumns.isEmpty())
           {
               this.indexColumns = indexColumns;
               createName();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message