db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata CollectionDescriptor.java
Date Sat, 06 Dec 2003 12:30:20 GMT
thma        2003/12/06 04:30:20

  Modified:    src/java/org/apache/ojb/broker/metadata
                        CollectionDescriptor.java
  Log:
  eliminate superfluous  toString() calls
  
  Revision  Changes    Path
  1.22      +5 -5      db-ojb/src/java/org/apache/ojb/broker/metadata/CollectionDescriptor.java
  
  Index: CollectionDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/CollectionDescriptor.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- CollectionDescriptor.java	25 Oct 2003 23:59:26 -0000	1.21
  +++ CollectionDescriptor.java	6 Dec 2003 12:30:20 -0000	1.22
  @@ -105,7 +105,7 @@
        * if true relationship is refreshed when owner is found in cache
        */
       private boolean m_refresh = false;
  -    
  +
       private QueryCustomizer m_queryCustomizer;
   
       public CollectionDescriptor(ClassDescriptor descriptor)
  @@ -366,7 +366,7 @@
               // foreign keys to this class
                for (int i=0;i<getFksToThisClass().length;i++)
                {
  -                String fkId = getFksToThisClass()[i].toString();
  +                String fkId = getFksToThisClass()[i];
                   result += "        " + tags.getOpeningTagNonClosingById(FK_POINTING_TO_THIS_CLASS)
+ " ";
                   result += tags.getAttribute(COLUMN_NAME, fkId) + "/>" + eol;
                }
  @@ -374,7 +374,7 @@
               // foreign keys to item class
                for (int i=0;i<getFksToItemClass().length;i++)
                {
  -                String fkId = getFksToItemClass()[i].toString();
  +                String fkId = getFksToItemClass()[i];
                   result += "        " + tags.getOpeningTagNonClosingById(FK_POINTING_TO_ITEMS_CLASS)
+ " ";
                   result += tags.getAttribute(COLUMN_NAME, fkId) + "/>" + eol;
                }
  @@ -384,7 +384,7 @@
           result       += "      " + tags.getClosingTagById(COLLECTION_DESCRIPTOR) + eol;
           return result;
       }
  -    
  +
   	/**
   	 * @return QueryCustomizer
   	 */
  
  
  

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


Mime
View raw message