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