[ https://issues.apache.org/jira/browse/HBASE-20669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16498120#comment-16498120 ]
Wei-Chiu Chuang commented on HBASE-20669: ----------------------------------------- Would this work? {code} - int scopeType = Integer.valueOf(Bytes.toString(value)); + int scopeType = Integer.valueOf(Bytes.toString(value)).intValue(); {code} My intellij editor says the boxing/unboxing is not necessary though. > [findbugs] autoboxing to parse primitive > ---------------------------------------- > > Key: HBASE-20669 > URL: https://issues.apache.org/jira/browse/HBASE-20669 > Project: HBase > Issue Type: Bug > Affects Versions: 1.3.2, 1.5.0, 1.2.7, 1.4.3 > Reporter: Sean Busbey > Assignee: Wei-Chiu Chuang > Priority: Major > Fix For: 1.5.0, 1.2.7, 1.3.3, 1.4.5 > > > HBASE-18864 introduced a change that's been flagged by findbugs. example on > branch-1: > {quote} > FindBugs module:hbase-client > Boxing/unboxing to parse a primitive > org.apache.hadoop.hbase.HColumnDescriptor.setValue(byte[], byte[]) At > HColumnDescriptor.java:org.apache.hadoop.hbase.HColumnDescriptor.setValue(byte[], > byte[]) At HColumnDescriptor.java:[line 579] > {quote} -- This message was sent by Atlassian JIRA (v7.6.3#76005)