[
https://issues.apache.org/jira/browse/LUCENE-6372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14530300#comment-14530300
]
Paul Elschot commented on LUCENE-6372:
--------------------------------------
I'll remove the comment and use a multiplicative hash instead of rotations.
Query has a this == other test in equals().
When this passes in the Query superclass, the subclass still has to check its
members.
Wouldn't it be better to do that test only in non abstract classes as the first
thing to be checked, if at all?
This is actually another issue, but anyway.
> Simplify hashCode/equals for SpanQuery subclasses
> -------------------------------------------------
>
> Key: LUCENE-6372
> URL: https://issues.apache.org/jira/browse/LUCENE-6372
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Paul Elschot
> Attachments: LUCENE-6372.patch
>
>
> Spin off from LUCENE-6308, see the comments there from around 23 March 2015.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]