Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
-
Use ProtobufMagic methods in ProtobufUtil
Description
Several methods duplicated between:
hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufMagic.java
and
hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
isPBMagicPrefix()
isPBMagicPrefix()
lengthOfPBMagic()
ProtobufUtil partically references ProtobufMagic, but it also has different compare implementation ...
Maybe this was based on packaging/signature need?