hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-11463) (findbugs) HE: Class defines equals() and uses Object.hashCode()
Date Fri, 04 Jul 2014 10:21:33 GMT

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

Hudson commented on HBASE-11463:
--------------------------------

FAILURE: Integrated in HBase-1.0 #11 (See [https://builds.apache.org/job/HBase-1.0/11/])
HBASE-11463 (findbugs) HE: Class defines equals() and uses Object.hashCode() (Mike Drob) (stack:
rev 8d62d8586495682d73c590c00638ce1f90d2d476)
* hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestFlushRegionEntry.java
* hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java
* hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRegionPlan.java
* hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestServerAndLoad.java
* hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestAuthenticationKey.java
* hbase-server/src/main/java/org/apache/hadoop/hbase/mapred/TableSplit.java
* hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestLruCachedBlock.java
* hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationKey.java
* hbase-server/src/test/java/org/apache/hadoop/hbase/mapred/TestSplitTable.java
* hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/LruCachedBlock.java
* hbase-server/src/main/java/org/apache/hadoop/hbase/master/RegionPlan.java
* hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionSourceImpl.java
* hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/ServerAndLoad.java
* hbase-hadoop2-compat/src/test/java/org/apache/hadoop/hbase/regionserver/TestMetricsRegionSourceImpl.java


> (findbugs) HE: Class defines equals() and uses Object.hashCode()
> ----------------------------------------------------------------
>
>                 Key: HBASE-11463
>                 URL: https://issues.apache.org/jira/browse/HBASE-11463
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Mike Drob
>            Assignee: Mike Drob
>            Priority: Trivial
>              Labels: findbugs
>             Fix For: 0.99.0, 2.0.0
>
>         Attachments: 11463v3.txt, HBASE-11463.patch, HBASE-11463.patch, HBASE-11463.patch.txt,
HBASE-11463.v2.patch.txt
>
>
> Findbugs warns that several classes define {{equals}} but not {{hashcode}}:
> {noformat}
> HE: Class defines equals() and uses Object.hashCode() (HE_EQUALS_USE_HASHCODE)
> This class overrides equals(Object), but does not override hashCode(), and inherits the
implementation of hashCode() from java.lang.Object (which returns the identity hash code,
an arbitrary value assigned to the object by the VM).  Therefore, the class is very likely
to violate the invariant that equal objects must have equal hashcodes.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message