LUCENE-7918: Fix incorrect equals method.

This commit is contained in:
Karl Wright 2017-08-10 07:09:48 -04:00
parent 90199e7485
commit 84d8385fb9
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ public abstract class GeoBaseCompositeShape<T extends GeoShape> implements GeoSh
@Override
public int hashCode() {
return super.hashCode() * 31 + shapes.hashCode();//TODO cache
return shapes.hashCode();
}
@Override
@ -116,6 +116,6 @@ public abstract class GeoBaseCompositeShape<T extends GeoShape> implements GeoSh
if (!(o instanceof GeoBaseCompositeShape<?>))
return false;
GeoBaseCompositeShape<?> other = (GeoBaseCompositeShape<?>) o;
return super.equals(o) && shapes.equals(other.shapes);
return shapes.equals(other.shapes);
}
}