SOLR-1207: equals method should compare this and other of DocList in DocSetBase

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@782506 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Koji Sekiguchi 2009-06-08 02:27:06 +00:00
parent 24485d6d55
commit 2eef2dfdc5
2 changed files with 3 additions and 1 deletions

View File

@ -409,6 +409,8 @@ Bug Fixes
48. SOLR-1182: Fix bug in OrdFieldSource#equals which could cause a bug with OrdFieldSource caching 48. SOLR-1182: Fix bug in OrdFieldSource#equals which could cause a bug with OrdFieldSource caching
on OrdFieldSource#hashcode collisions. (Mark Miller) on OrdFieldSource#hashcode collisions. (Mark Miller)
49. SOLR-1207: equals method should compare this and other of DocList in DocSetBase (koji)
Other Changes Other Changes
---------------------- ----------------------

View File

@ -162,7 +162,7 @@ abstract class DocSetBase implements DocSet {
if (this instanceof DocList && other instanceof DocList) { if (this instanceof DocList && other instanceof DocList) {
// compare ordering // compare ordering
DocIterator i1=this.iterator(); DocIterator i1=this.iterator();
DocIterator i2=this.iterator(); DocIterator i2=other.iterator();
while(i1.hasNext() && i2.hasNext()) { while(i1.hasNext() && i2.hasNext()) {
if (i1.nextDoc() != i2.nextDoc()) return false; if (i1.nextDoc() != i2.nextDoc()) return false;
} }