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/util/configuration/impl ConfigurationAbstractImpl.java
Date Sat, 06 Dec 2003 12:28:06 GMT
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


Mime
View raw message