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

This commit is contained in:
Michael Stack 2018-06-23 20:41:47 -07:00
parent 79800e607c
commit 959d9c16f3
1 changed files with 4 additions and 4 deletions

View File

@ -115,8 +115,8 @@ 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) -> {
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)));
}