accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [2/7] git commit: ACCUMULO-2758 Remove non-observed offset argument from private encodeColumnFamily method
Date Thu, 15 May 2014 21:03:26 GMT
ACCUMULO-2758 Remove non-observed offset argument from private encodeColumnFamily method

Signed-off-by: Josh Elser <elserj@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/b2ecd1cd
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/b2ecd1cd
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/b2ecd1cd

Branch: refs/heads/1.5.2-SNAPSHOT
Commit: b2ecd1cdbe0cfe4f14c6be7a38b7113897654dc7
Parents: 57f2763
Author: Gary Singh <gary2086@gmail.com>
Authored: Thu May 15 16:57:32 2014 -0400
Committer: Josh Elser <elserj@apache.org>
Committed: Thu May 15 17:02:31 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/accumulo/core/util/LocalityGroupUtil.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/b2ecd1cd/core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java b/core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java
index 2dfbf86..6efd098 100644
--- a/core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java
+++ b/core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java
@@ -147,7 +147,7 @@ public class LocalityGroupUtil {
     StringBuilder sb = new StringBuilder();
     
     for (Text text : colFams) {
-      String ecf = encodeColumnFamily(sb, text.getBytes(), 0, text.getLength());
+      String ecf = encodeColumnFamily(sb, text.getBytes(), text.getLength());
       ecfs.add(ecf);
     }
     
@@ -155,10 +155,10 @@ public class LocalityGroupUtil {
   }
   
   public static String encodeColumnFamily(ByteSequence bs) {
-    return encodeColumnFamily(new StringBuilder(), bs.getBackingArray(), bs.offset(), bs.length());
+    return encodeColumnFamily(new StringBuilder(), bs.getBackingArray(), bs.length());
   }
   
-  private static String encodeColumnFamily(StringBuilder sb, byte[] ba, int offset, int len)
{
+  private static String encodeColumnFamily(StringBuilder sb, byte[] ba, int len) {
     sb.setLength(0);
     
     for (int i = 0; i < len; i++) {


Mime
View raw message