virajjasani commented on a change in pull request #2797:
URL: https://github.com/apache/hbase/pull/2797#discussion_r546595093



##########
File path: 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java
##########
@@ -1000,25 +999,16 @@ public byte getTypeByte() {
 
     @Override
     public Optional<Tag> getTag(byte type) {
-      if (cell instanceof RawCell) {
-        return ((RawCell) cell).getTag(type);
-      }
       return PrivateCellUtil.getTag(cell, type);
     }
 
     @Override
     public Iterator<Tag> getTags() {
-      if (cell instanceof RawCell) {
-        return ((RawCell) cell).getTags();
-      }
       return PrivateCellUtil.tagsIterator(cell);
     }
 
     @Override
     public byte[] cloneTags() {
-      if (cell instanceof RawCell) {
-        return ((RawCell) cell).cloneTags();

Review comment:
       Ok so `RawCell.cloneTags()` internally refers 
`PrivateCellUtil.cloneTags(cell)` only, hence the removal and same is 
applicable to above methods.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to