Fix IndexCommit hashCode() and equals() to be consistent
--------------------------------------------------------

                 Key: LUCENE-2417
                 URL: https://issues.apache.org/jira/browse/LUCENE-2417
             Project: Lucene - Java
          Issue Type: Bug
          Components: Index
            Reporter: Shai Erera
            Assignee: Shai Erera
             Fix For: 3.1


IndexCommit's impl of hashCode() and equals() is inconsistent. One uses Dir + 
version and the other uses Dir + equals. According to hashCode()'s javadoc, if 
o1.equals(o2), then o1.hashCode() == o2.hashCode(). Simple fix, and I'll add a 
test case.

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to