mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revert "tests: define equals & hashcode for the MockVirtualFile"
Several tests rely on the fact that MockVirtualFiles should be compared only by equals.
This reverts commit 9d6794d2
This commit is contained in:
@@ -126,20 +126,6 @@ public class MockVirtualFile extends VirtualFile {
|
||||
return VfsUtilCore.toVirtualFileArray(myChildren);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
MockVirtualFile file = (MockVirtualFile)o;
|
||||
return getPath().equals(file.getPath());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return getPath().hashCode();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public OutputStream getOutputStream(Object requestor, long newModificationStamp, long newTimeStamp) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user