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,10 +115,10 @@ public abstract class Mutation extends OperationWithAttributes implements Row, C
super(clone); super(clone);
this.row = clone.getRow(); this.row = clone.getRow();
this.ts = clone.getTimestamp(); this.ts = clone.getTimestamp();
this.familyMap = clone.getFamilyCellMap().entrySet().stream() this.familyMap = clone.getFamilyCellMap().entrySet().stream().
.collect(Collectors.toMap(e -> e.getKey(), e -> new ArrayList<>(e.getValue()), (k, v) -> { collect(Collectors.toMap(e -> e.getKey(), e -> new ArrayList<>(e.getValue()), (k, v) -> {
throw new RuntimeException("collisions!!!"); throw new RuntimeException("collisions!!!");
}, () -> new TreeMap<>(Bytes.BYTES_COMPARATOR))); }, () -> new TreeMap<>(Bytes.BYTES_COMPARATOR)));
} }
/** /**