mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user