ACCUMULO-2758 Remove non-observed offset argument from private encodeColumnFamily method
Signed-off-by: Josh Elser <els...@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/master Commit: b2ecd1cdbe0cfe4f14c6be7a38b7113897654dc7 Parents: 57f2763 Author: Gary Singh <gary2...@gmail.com> Authored: Thu May 15 16:57:32 2014 -0400 Committer: Josh Elser <els...@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++) {