hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "JC (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HBASE-17862) Condition that always returns true
Date Sat, 01 Apr 2017 01:31:41 GMT

    [ https://issues.apache.org/jira/browse/HBASE-17862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15951903#comment-15951903
] 

JC edited comment on HBASE-17862 at 4/1/17 1:31 AM:
----------------------------------------------------

Thanks for the comment. I've created a pull request: https://github.com/apache/hbase/pull/47

Thanks!


was (Author: lifove):
Thanks for the comment. I've create a pull request: https://github.com/apache/hbase/pull/47

Thanks!

> Condition that always returns true
> ----------------------------------
>
>                 Key: HBASE-17862
>                 URL: https://issues.apache.org/jira/browse/HBASE-17862
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>            Reporter: JC
>            Priority: Trivial
>
> Hi
> In recent github mirror of hbase, I've found the following code smell.
> Path: hbase-client/src/main/java/org/apache/hadoop/hbase/filter/ColumnPaginationFilter.java
> {code}
> 209 
> 210     ColumnPaginationFilter other = (ColumnPaginationFilter)o;
> 211     if (this.columnOffset != null) {
> 212       return this.getLimit() == this.getLimit() &&
> 213           Bytes.equals(this.getColumnOffset(), other.getColumnOffset());
> 214     }
> {code}
> It should be?
> {code}
> 212       return this.getLimit() == other.getLimit() &&
> {code}
> This might be just a code smell as Bytes.equals can be enough for the return value but
wanted to report just in case.
> Thanks!



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message