You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2018/06/24 06:32:54 UTC

[2/2] hbase git commit: HBASE-20710 extra cloneFamily() in Mutation.add(Cell); ADDENDUM checkstyle

HBASE-20710 extra cloneFamily() in Mutation.add(Cell); ADDENDUM checkstyle


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

Branch: refs/heads/branch-2
Commit: daa3e007ece7ac781e5944fcf3c78b4520d6f0c1
Parents: 6f4ff8d
Author: Michael Stack <st...@apache.org>
Authored: Sat Jun 23 20:41:47 2018 -0700
Committer: Michael Stack <st...@apache.org>
Committed: Sat Jun 23 23:32:45 2018 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/client/Mutation.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/daa3e007/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java
index 3d93501..dc8199d 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java
@@ -115,10 +115,10 @@ public abstract class Mutation extends OperationWithAttributes implements Row, C
     super(clone);
     this.row = clone.getRow();
     this.ts = clone.getTimestamp();
-    this.familyMap = clone.getFamilyCellMap().entrySet().stream()
-      .collect(Collectors.toMap(e -> e.getKey(), e -> new ArrayList<>(e.getValue()), (k, v) -> {
-            throw new RuntimeException("collisions!!!");
-          }, () -> new TreeMap<>(Bytes.BYTES_COMPARATOR)));
+    this.familyMap = clone.getFamilyCellMap().entrySet().stream().
+      collect(Collectors.toMap(e -> e.getKey(), e -> new ArrayList<>(e.getValue()), (k, v) -> {
+        throw new RuntimeException("collisions!!!");
+      }, () -> new TreeMap<>(Bytes.BYTES_COMPARATOR)));
   }
 
   /**