Fix ResolvableType hashCode generation

Fix ResolvableType.hashCode() to use the source of the variable
resolver, rather than the resolver itself.
This commit is contained in:
Phillip Webb 2013-12-02 14:47:44 -08:00
parent 69238ba66f
commit ab2949f2b7
1 changed files with 2 additions and 1 deletions

View File

@ -690,7 +690,8 @@ public final class ResolvableType implements Serializable {
@Override
public int hashCode() {
int hashCode = ObjectUtils.nullSafeHashCode(this.type);
hashCode = hashCode * 31 + ObjectUtils.nullSafeHashCode(this.variableResolver);
hashCode = hashCode * 31 + ObjectUtils.nullSafeHashCode(
this.variableResolver == null ? null : this.variableResolver.getSource());
hashCode = hashCode * 31 + ObjectUtils.nullSafeHashCode(this.componentType);
return hashCode;
}