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

Mike Drob commented on HBASE-20359:
-----------------------------------

http://errorprone.info/bugpattern/ComparableAndComparator

It shows up as a compilation warning with {{-P errorProne}} given.

> why Comparator extends comparable?
> ----------------------------------
>
>                 Key: HBASE-20359
>                 URL: https://issues.apache.org/jira/browse/HBASE-20359
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Nick.han
>            Priority: Minor
>
> Comparable is an interface,object implements this interface can be compare 
> with some other object, Comparator is a tool for compare object,the tool 
> itself can be compare is useless, so why a tool implement the comparable 
> interface?Do we have to  improve this?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to