incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1206963 - /incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/InMemByteTransactionImpl.java
Date Mon, 28 Nov 2011 02:07:32 GMT
Author: kwright
Date: Mon Nov 28 02:07:31 2011
New Revision: 1206963

URL: http://svn.apache.org/viewvc?rev=1206963&view=rev
Log:
Chase down array copy arguments and finish the serialization-only test repository.

Modified:
    incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/InMemByteTransactionImpl.java

Modified: incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/InMemByteTransactionImpl.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/InMemByteTransactionImpl.java?rev=1206963&r1=1206962&r2=1206963&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/InMemByteTransactionImpl.java
(original)
+++ incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/InMemByteTransactionImpl.java
Mon Nov 28 02:07:31 2011
@@ -105,8 +105,8 @@ public class InMemByteTransactionImpl im
       byte[] rval = new byte[1+classNameBytes.length+valueBytes.length];
       rval[0] = (byte)classNameBytes.length;
       // Copy arrays around
-      //System.arrayCopy(rval,classNameBytes,1,0,classNameBytes.length);
-      //System.arrayCopy(rval,valueBytes,1+classNameBytes.length,0,valueBytes.length);
+      System.arraycopy(classNameBytes,0,rval,1,classNameBytes.length);
+      System.arraycopy(valueBytes,0,rval,1+classNameBytes.length,valueBytes.length);
       return rval;
     }
     catch (java.io.UnsupportedEncodingException e)
@@ -126,7 +126,7 @@ public class InMemByteTransactionImpl im
       String className = new String(bytes,1,classNameLength,"ASCII");
       byte[] serializedValue = new byte[bytes.length - (classNameLength+1)];
       // Copy bytes around
-      //System.arrayCopy(serializedValue,bytes,0,classNameLength+1,serializedValue.length);
+      System.arraycopy(bytes,classNameLength+1,serializedValue,0,serializedValue.length);
       try
       {
         Class classToMaterialize = Class.forName(className);



Mime
View raw message