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 br...@apache.org on 2004/06/11 21:06:35 UTC

cvs commit: db-ojb/src/java/org/apache/ojb/broker/util Base64.java

brj         2004/06/11 12:06:35

  Modified:    src/java/org/apache/ojb/broker/util Base64.java
  Log:
  use System.arraycopy (by robert sfeir)
  
  Revision  Changes    Path
  1.7       +1 -3      db-ojb/src/java/org/apache/ojb/broker/util/Base64.java
  
  Index: Base64.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/Base64.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Base64.java	22 May 2004 10:03:02 -0000	1.6
  +++ Base64.java	11 Jun 2004 19:06:35 -0000	1.7
  @@ -590,9 +590,7 @@
           int    count    = decode4to3( fourBytes, 0, outBuff1, 0 );
           byte[] outBuff2 = new byte[ count ];
           
  -        for( int i = 0; i < count; i++ )
  -            outBuff2[i] = outBuff1[i];
  -        
  +        System.arraycopy( outBuff1, 0, outBuff2, 0, count );        
           return outBuff2;
       }
       
  
  
  

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