Author: elserj
Date: Tue Nov 13 02:36:43 2012
New Revision: 1408559

URL: http://svn.apache.org/viewvc?rev=1408559&view=rev
Log:
ACCUMULO-851 Update the old Mutation constructor to use the new constructor to 
avoid code repetition.

Modified:
    
accumulo/trunk/core/src/main/java/org/apache/accumulo/core/data/Mutation.java

Modified: 
accumulo/trunk/core/src/main/java/org/apache/accumulo/core/data/Mutation.java
URL: 
http://svn.apache.org/viewvc/accumulo/trunk/core/src/main/java/org/apache/accumulo/core/data/Mutation.java?rev=1408559&r1=1408558&r2=1408559&view=diff
==============================================================================
--- 
accumulo/trunk/core/src/main/java/org/apache/accumulo/core/data/Mutation.java 
(original)
+++ 
accumulo/trunk/core/src/main/java/org/apache/accumulo/core/data/Mutation.java 
Tue Nov 13 02:36:43 2012
@@ -210,9 +210,7 @@ public class Mutation implements Writabl
   }
   
   public Mutation(Text row) {
-    this.row = new byte[row.getLength()];
-    System.arraycopy(row.getBytes(), 0, this.row, 0, row.getLength());
-    buffer = new ByteBuffer();
+    this(row.getBytes(), 0, row.getLength());
   }
   
   public Mutation(CharSequence row) {


Reply via email to