mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diff: check changes for strict equality
Otherwise there are possible cases, when Change is substituted by another one with same path (therefore equals()), but different content.
This commit is contained in:
@@ -194,7 +194,7 @@ public abstract class CacheChangeProcessor extends DiffRequestProcessor {
|
||||
return;
|
||||
}
|
||||
|
||||
if (myCurrentChange.getBeforeRevision() instanceof FakeRevision || myCurrentChange.getAfterRevision() instanceof FakeRevision) {
|
||||
if (!ChangeDiffRequestProducer.isEquals(myCurrentChange, selectedChange)) {
|
||||
myCurrentChange = selectedChange;
|
||||
updateRequest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user