lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1831) TokenWrapperAttributeFactory, CachingWrapperFilterHelper implements equals and so should also implement hashCode
Date Thu, 20 Aug 2009 22:13:14 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745692#action_12745692
] 

Uwe Schindler commented on LUCENE-1831:
---------------------------------------

I implemented the two hashCodes. The wrapper returns the hashcode of the delegate and the
other one the filter's hashCode. I commit shortly.

> TokenWrapperAttributeFactory, CachingWrapperFilterHelper implements equals and so should
also implement hashCode
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-1831
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1831
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Analysis
>            Reporter: Mark Miller
>            Assignee: Uwe Schindler
>            Priority: Minor
>             Fix For: 2.9
>
>
> its part of the contract of Object 
> bq. If two objects are equal according to the equals(Object) method, then calling the
hashCode method on each of the two objects must produce the same integer result.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message