You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by th...@apache.org on 2003/12/06 13:28:06 UTC

cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/configuration/impl ConfigurationAbstractImpl.java

thma        2003/12/06 04:28:06

  Modified:    src/java/org/apache/ojb/broker/util/configuration/impl
                        ConfigurationAbstractImpl.java
  Log:
  don't allocate a new String when reading from a Tokenizer
  
  Revision  Changes    Path
  1.11      +2 -2      db-ojb/src/java/org/apache/ojb/broker/util/configuration/impl/ConfigurationAbstractImpl.java
  
  Index: ConfigurationAbstractImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/configuration/impl/ConfigurationAbstractImpl.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ConfigurationAbstractImpl.java	26 Oct 2003 17:19:57 -0000	1.10
  +++ ConfigurationAbstractImpl.java	6 Dec 2003 12:28:06 -0000	1.11
  @@ -151,7 +151,7 @@
           String[] ret = new String[st.countTokens()];
           for (int i = 0; i < ret.length; i++)
           {
  -            ret[i] = new String(st.nextToken());
  +            ret[i] = st.nextToken();
           }
           return ret;
       }
  
  
  

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