accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject svn commit: r1408559 - /accumulo/trunk/core/src/main/java/org/apache/accumulo/core/data/Mutation.java
Date Tue, 13 Nov 2012 02:36:44 GMT
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) {



Mime
View raw message