1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00

Correct distinction of search results, bug 157585.

This commit is contained in:
Markus Schorn 2009-04-17 11:22:29 +00:00
parent 0cbcb912a5
commit dde5816f8e

View file

@ -38,7 +38,7 @@ public class TypeInfoSearchElement extends PDOMSearchElement {
@Override
public int hashCode() {
return super.hashCode() + (typeInfo.getCElementType() *31 + typeInfo.getName().hashCode())*31;
return super.hashCode() + typeInfo.hashCode()*31;
}
@Override
@ -49,9 +49,7 @@ public class TypeInfoSearchElement extends PDOMSearchElement {
if (!(obj instanceof TypeInfoSearchElement))
return false;
TypeInfoSearchElement other= (TypeInfoSearchElement)obj;
return typeInfo.getCElementType() == other.typeInfo.getCElementType() &&
typeInfo.getName().equals(other.typeInfo.getName()) &&
super.equals(other);
return super.equals(other) && typeInfo.equals(other.typeInfo);
}
public final ITypeInfo getTypeInfo() {