You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2012/02/17 15:09:50 UTC
svn commit: r1245502 -
/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/IndexCommit.java
Author: mikemccand
Date: Fri Feb 17 14:09:49 2012
New Revision: 1245502
URL: http://svn.apache.org/viewvc?rev=1245502&view=rev
Log:
use == for consistency w/ compareTo
Modified:
lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/IndexCommit.java
Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/IndexCommit.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/IndexCommit.java?rev=1245502&r1=1245501&r2=1245502&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/IndexCommit.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/IndexCommit.java Fri Feb 17 14:09:49 2012
@@ -83,7 +83,7 @@ public abstract class IndexCommit implem
public boolean equals(Object other) {
if (other instanceof IndexCommit) {
IndexCommit otherCommit = (IndexCommit) other;
- return otherCommit.getDirectory().equals(getDirectory()) && otherCommit.getGeneration() == getGeneration();
+ return otherCommit.getDirectory() == getDirectory() && otherCommit.getGeneration() == getGeneration();
} else {
return false;
}