提交 ab2949f2 编写于 作者: P Phillip Webb

Fix ResolvableType hashCode generation

Fix ResolvableType.hashCode() to use the source of the variable
resolver, rather than the resolver itself.
上级 69238ba6
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册