tests: don't allow to define equals & hashCode for the MockVirtualFile

Several tests rely on the identity equals for MockVirtualFile, and for now, there is no infrastructure to support equals & hashCode, as it is done for regular VirtualFiles. Therefore it is better to mark explicitly that equals & hashCode shouldn't be defined here.
This commit is contained in:
Kirill Likhodedov
2019-03-19 15:13:02 +03:00
parent a458fc2929
commit fe355b77bb
@@ -126,6 +126,16 @@ public class MockVirtualFile extends VirtualFile {
return VfsUtilCore.toVirtualFileArray(myChildren);
}
@Override
public final boolean equals(Object o) {
return super.equals(o);
}
@Override
public final int hashCode() {
return super.hashCode();
}
@NotNull
@Override
public OutputStream getOutputStream(Object requestor, long newModificationStamp, long newTimeStamp) throws IOException {