jicarilla-sandbox/platform/container/impl/src/java/org/jicarilla/container/factories Type25ComponentFactory.java,1.8,1.9

Leo Simons <[email protected]>
Newsgroups gmane.comp.java.jicarilla.cvs
Message-ID <[email protected]>
Update of /cvsroot/jicarilla/jicarilla-sandbox/platform/container/impl/src/java/org/jicarilla/container/factories
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32633/platform/container/impl/src/java/org/jicarilla/container/factories

Modified Files:
	Type25ComponentFactory.java 
Log Message:
replace manual array modification with System.arraycopy

Index: Type25ComponentFactory.java
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/container/impl/src/java/org/jicarilla/container/factories/Type25ComponentFactory.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Type25ComponentFactory.java	25 Jan 2004 22:12:54 -0000	1.8
+++ Type25ComponentFactory.java	16 Mar 2004 15:50:58 -0000	1.9
@@ -78,11 +78,9 @@
             final Class[] array2 )
     {
         final Class[] result = new Class[array1.length+array2.length];
-        for( int i = 0; i < array1.length; i++ )
-            result[i] = array1[i];
 
-        for( int i = array1.length; i < array2.length; i++ )
-            result[i] = array2[i];
+        System.arraycopy(array1,0,result,0,array1.length);
+        System.arraycopy(array2,0,result,array1.length,array2.length);
 
         return result;
     }



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.