You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Mike Drob (JIRA)" <ji...@apache.org> on 2018/02/02 22:34:00 UTC
[jira] [Commented] (HBASE-19922) ProtobufUtils::PRIMITIVES is
unused
[ https://issues.apache.org/jira/browse/HBASE-19922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16351018#comment-16351018 ]
Mike Drob commented on HBASE-19922:
-----------------------------------
I accidentally left an unused import in, I think, would plan to fix that on commit assuming everything else is good in QA and get a favorable review.
> ProtobufUtils::PRIMITIVES is unused
> -----------------------------------
>
> Key: HBASE-19922
> URL: https://issues.apache.org/jira/browse/HBASE-19922
> Project: HBase
> Issue Type: Task
> Components: Protobufs
> Reporter: Mike Drob
> Assignee: Mike Drob
> Priority: Major
> Fix For: 2.0
>
> Attachments: HBASE-19922.patch
>
>
> It looks like ProtobufUtils::PRIMITIVES is never read in both the shaded and non-shaded versions of the class. Is it safe to remove?
> https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java#L128
> We populate the map in a static initializer but never read any values from it...
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)