CacheValue psi leak fixed

You can not capture any psi value (the one stored in context) in CachedValueProvider. Parameter should be used.
This commit is contained in:
Ilya.Kazakevich
2015-11-11 19:46:35 +03:00
parent a4e05b106d
commit 3a6fa81b82
@@ -259,4 +259,19 @@ public class TypeEvalContext {
TypeEvalConstraints getConstraints() {
return myConstraints;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TypeEvalContext context = (TypeEvalContext)o;
return myConstraints.equals(context.myConstraints);
}
@Override
public int hashCode() {
return myConstraints.hashCode();
}
}