Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
270,700
void () { assertEquals("", VirtualFileManager.extractPath("")); assertEquals("file:/", VirtualFileManager.extractPath("file:/")); assertEquals("", VirtualFileManager.extractPath("file://")); assertEquals("/some/path/file.rb:24", VirtualFileManager.extractPath("file:///some/path/file.rb:24")); assertEquals("./some/path/...
testExtractPath
270,701
int (@NotNull String message) { return 0; }
show
270,702
String (@NotNull Charset charset) { return "<?xml version=\"1.0\" encoding=\"" + charset.name() + "\"?>\n"; }
prolog
270,703
Document (VirtualFile file) { return FileDocumentManager.getInstance().getDocument(file); }
getDocument
270,704
void () { VirtualFile vTestRoot = getTestRoot(); VirtualFile xml = vTestRoot.findChild("xWin1251.xml"); String expected = prolog(WINDOWS_1251) + XML_TEST_BODY; String text = getDocument(xml).getText(); assertEquals(expected, text); }
testWin1251
270,705
void () { VirtualFile file = find("defaultHtml.html"); assertEquals(EncodingProjectManager.getInstance(getProject()).getDefaultCharset(), file.getCharset()); }
testDefaultHtml
270,706
VirtualFile (String name) { return Objects.requireNonNull(getTestRoot().findChild(name)); }
find
270,707
void () { VirtualFile xml = find("xTrickyProlog.xml"); assertEquals("Big5", xml.getCharset().name()); }
testTrickyProlog
270,708
void () { VirtualFile xml = find("xDefault.xml"); assertEquals(StandardCharsets.UTF_8, xml.getCharset()); }
testDefaultXml
270,709
void () { VirtualFile xml = find("xIbm866.xml"); String expected = prolog(Charset.forName("IBM866")) + XML_TEST_BODY; String text = getDocument(xml).getText(); assertEquals(expected, text); }
testIbm866
270,710
VirtualFile () { File testRoot = new File(PathManagerEx.getCommunityHomePath(), "platform/platform-tests/testData/vfs/encoding"); return LocalFileSystem.getInstance().findFileByIoFile(testRoot); }
getTestRoot
270,711
void (Document document, String text) { ApplicationManager.getApplication().runWriteAction(() -> document.setText(text)); }
setText
270,712
void (@NotNull DocumentEvent event) { changed[0] = true; }
documentChanged
270,713
Charset () { // just for the sake of testing something different from utf-8 return StandardCharsets.US_ASCII; }
defaultProjectEncoding
270,714
void () { UndoManager myManager = UndoManager.getInstance(getProject()); assertTrue("undo is not available", myManager.isUndoAvailable(null)); myManager.undo(null); }
globalUndo
270,715
void () { VirtualFile dir = find("newEncoding"); VirtualFile file = Objects.requireNonNull(dir.findFileByRelativePath("src/xxx.txt")); Document document = Objects.requireNonNull(FileDocumentManager.getInstance().getDocument(file)); assertNotNull(document.getText()); UIUtil.dispatchAllInvocationEvents(); Project newEnco...
testFileMustNotLoadInWrongEncodingIfAccessedBeforeProjectOpen
270,716
Charset (@Nullable Project project, @Nullable VirtualFile file, @NotNull CharSequence content) { Thread prev = detectThreads.put(file, Thread.currentThread()); try { if (prev != null) { exception.set(new Throwable(file +" has two detection threads: "+prev +" and "+ Thread.currentThread()+"\nThe full thread dump:\n"+Thr...
extractCharsetFromFileContent
270,717
void () { VirtualFile dir = getTempDir().createVirtualDir(); ModuleRootModificationUtil.addContentRoot(getModule(), dir); VirtualFile file = createChildData(dir, "my.txt"); setFileText(file, "xxx"); file.setCharset(US_ASCII); FileDocumentManager.getInstance().saveAllDocuments(); UIUtil.dispatchAllInvocationEvents(); as...
testSetMappingMustResetEncodingOfNotYetLoadedFiles
270,718
void () { VirtualFile dir = getTempDir().createVirtualDir(); VirtualFile root = dir.getParent(); ModuleRootModificationUtil.addContentRoot(getModule(), dir); FileDocumentManager.getInstance().saveAllDocuments(); UIUtil.dispatchAllInvocationEvents(); ((EncodingProjectManagerImpl)EncodingProjectManager.getInstance(getPro...
testEncodingMappingMustNotContainInvalidFiles
270,719
Charset (@NotNull VirtualFile virtualFile, Project project) { return StandardCharsets.UTF_16; }
getEncoding
270,720
void () { Project project = getProject(); EncodingPanel panel = new EncodingPanel(project, project.getCoroutineScope()) { @Override protected VirtualFile getSelectedFile() { LightVirtualFile file = new LightVirtualFile("x.txt", "xxx"); file.setWritable(false); return file; } }; panel.updateInTests(true); assertTrue(pan...
testEncodingWidgetMustBeAvailableForReadonlyFiles
270,721
VirtualFile () { LightVirtualFile file = new LightVirtualFile("x.txt", "xxx"); file.setWritable(false); return file; }
getSelectedFile
270,722
void () { final ByteBuffer buffer = ByteBuffer.allocate(200); final int limitInitial = 128; final byte[] bytes = AttributesStorageOnTheTopOfBlobStorageTestBase.generateBytes(ThreadLocalRandom.current(), buffer.capacity()); for (int offset = 0; offset < limitInitial; offset++) { for (int oldGap = 0; oldGap < limitInitia...
resizeGap_keepsBeforeAndAfterSlicesIntact
270,723
Field[] (@NotNull Object value) { //RC: collect through all the hierarchy seems too dangerous //return ReflectionUtil.collectFields(value.getClass()).toArray(Field[]::new); return value.getClass().getDeclaredFields(); }
collectAllFields
270,724
boolean (@Nullable Object value) { if (value == null) { return true; } if (value instanceof ByteBuffer) { //every BBuffer we meet could be a mapped buffer, which was already unmapped by one of the .closeXXX() // methods before -- so don't touch it even with a stick. // Even set.contains(byteBuffer) could crash JVM: it ...
isUntouchable
270,725
void (int depth, Field field, String message) { log(repeat(" ", depth) + "." + field.getName() + "(" + field.getType().getSimpleName() + ")" + ": " + message); }
log
270,726
void (int depth, String fieldName, String message) { log(repeat(" ", depth) + "." + fieldName + ": " + message); }
log
270,727
void (String message) { //System.out.println(message); }
log
270,728
AttributeRecord[] (final int size, final int differentAttributesCount, final int maxAttributeValueSize, final Random rnd) { final int[] fileIds = rnd.ints() .filter(id -> id > 0) .limit(size / 2) .distinct() .toArray(); final int[] attributeIds = rnd.ints(0, AbstractAttributesStorage.MAX_ATTRIBUTE_ID + 1) .filter(id ->...
generateManyRandomRecords
270,729
AttributeRecord (final int fileId, final int attributeId) { return new AttributeRecord(NON_EXISTENT_ATTR_RECORD_ID, fileId, attributeId); }
newAttributeRecord
270,730
long () { //attributeRecordId is storage-specific, but this id -- which is basically packed(fileId, attributeId) pair -- is // really identifies attribute content return Integer.toUnsignedLong(fileId) << Integer.SIZE | Integer.toUnsignedLong(attributeId); }
uniqueId
270,731
AttributeRecord (final int attributesRecordId) { return new AttributeRecord(attributesRecordId, fileId, attributeId, attributeBytes, attributeBytesLength); }
withAttributesRecordId
270,732
AttributeRecord (final int fileId) { return new AttributeRecord(attributesRecordId, fileId, attributeId, attributeBytes, attributeBytesLength); }
withFileId
270,733
AttributeRecord (final int attributeId) { return new AttributeRecord(attributesRecordId, fileId, attributeId, attributeBytes, attributeBytesLength); }
withAttributeId
270,734
AttributeRecord (final byte[] attributeBytes, final int attributeBytesLength) { return new AttributeRecord(attributesRecordId, fileId, attributeId, attributeBytes, attributeBytesLength); }
withAttributeBytes
270,735
AttributeRecord (final int size) { final ThreadLocalRandom rnd = ThreadLocalRandom.current(); final int sizeExcess = rnd.nextInt(size + 1); final byte[] bytes = generateBytes(rnd, size + sizeExcess); return withAttributeBytes(bytes, size); }
withRandomAttributeBytes
270,736
int () { return attributesRecordId; }
recordId
270,737
int () { return fileId; }
fileId
270,738
int () { return attributeId; }
attributeId
270,739
byte[] () { return Arrays.copyOf(attributeBytes, attributeBytesLength); }
attributeBytes
270,740
int () { return attributeBytesLength; }
attributeBytesLength
270,741
String () { final byte[] truncatedValue = Arrays.copyOf(attributeBytes, Math.min(16, attributeBytesLength)); return "AttributeRecord{" + "fileId: " + fileId + ", attributeId: " + attributeId + ", recordId: " + attributesRecordId + "}{bytes: " + Arrays.toString(truncatedValue) + (truncatedValue.length < attributeBytesLe...
toString
270,742
void (final AttributeRecord[] updatedRecords) { //attribute record id (directory record) could be changed (record relocated) because of later // appended attributes. Here we scan all attribute records, and ensure all records with the same // fileId have the same attributeRecordId -- most recent one, stored in fileIdToA...
updateAttributeRecordIds
270,743
byte[] (final ThreadLocalRandom rnd, final int size) { final byte[] attributeBytes = new byte[size]; rnd.nextBytes(attributeBytes); return attributeBytes; }
generateBytes
270,744
void (final File directory, final Predicate<File> directoryConsumer, final Consumer<File> fileConsumer) { if (!directoryConsumer.test(directory)) { throw new AssertionError("Code bug: " + directory + " must be a directory"); } final List<RecursiveAction> subDirectoryActions = new ArrayList<>(); final List<File> files =...
scanDirectoryWithListFilesFJP
270,745
void () { scanDirectoryWithListFilesFJP(child, directoryConsumer, fileConsumer); }
compute
270,746
void (final Path directory, final Predicate<Path> directoryConsumer, final Consumer<Path> fileConsumer) { if (!directoryConsumer.test(directory)) { throw new AssertionError("Code bug: " + directory + " must be a directory"); } final List<RecursiveAction> subDirectoryActions = new ArrayList<>(); final List<Path> plainFi...
scanDirectoryWithDirectoryStreamFJP
270,747
void () { scanDirectoryWithDirectoryStreamFJP(child, directoryConsumer, fileConsumer); }
compute
270,748
void (final Path directory, final Predicate<Path> directoryConsumer, final Consumer<Path> fileConsumer) { if (!directoryConsumer.test(directory)) { throw new AssertionError("Code bug: " + directory + " must be a directory"); } final List<RecursiveAction> subDirectoryActions = new ArrayList<>(); final List<Path> plainFi...
scanDirectoryWithDirectoryStreamFJP_NOFOLLOW_LINKS
270,749
void () { scanDirectoryWithDirectoryStreamFJP_NOFOLLOW_LINKS(child, directoryConsumer, fileConsumer); }
compute
270,750
void (String[] args) { final Path path = ROOT.toPath(); System.out.println("Statistic for " + path); var forked = walk(path, p -> { Queue<Path> paths = new ConcurrentLinkedQueue<>(); final ForkJoinPool fjp = new ForkJoinPool(THREADS); fjp.invoke(new FileWalker(path, paths::add)); return paths; }, "ForkJoinPool"); var e...
main
270,751
void (Consumer<Path> consumer) { submit(() -> run(dir, consumer)); while (lock.get() != 0) { } service.shutdown(); }
start
270,752
void (Path dir, Consumer<Path> consumer) { consumer.accept(dir); forEachSubdir(dir, p -> submit(() -> run(p, consumer))); }
run
270,753
void (Runnable runnable) { lock.incrementAndGet(); service.submit(() -> { runnable.run(); lock.decrementAndGet(); }); }
submit
270,754
void () { consumer.accept(path); List<FileWalker> tasks = new LinkedList<>(); forEachSubdir(path, p -> tasks.add(new FileWalker(p, consumer))); if (!tasks.isEmpty()) invokeAll(tasks); }
compute
270,755
void (final Path dir, final Consumer<Path> children) { if (Files.isRegularFile(dir, NOFOLLOW_LINKS)) return; try (DirectoryStream<Path> paths = Files.newDirectoryStream(dir)) { paths.forEach(children); } catch (IOException ignore) { } }
forEachSubdir
270,756
void () { File file = tempDirectory.newFile("test.txt"); VirtualFile vFile = refreshAndFind(file); int id = ((VirtualFileWithId)vFile).getId(); assertEquals("File is unique identified by its fileId", vFile, PersistentFS.getInstance().findFileById(id) ); VfsTestUtil.deleteFile(vFile); assertNull("Deleted file can't be f...
testAccessingFileByID
270,757
void () { File x = tempDirectory.newFile("x.jar"); VirtualFile vx = refreshAndFind(x); JarFileSystem jfs = JarFileSystem.getInstance(); VirtualFile root = jfs.getJarRootForLocalFile(vx); String path = vx.getPath() + "/../" + vx.getName() + JarFileSystem.JAR_SEPARATOR; assertSame(PersistentFS.getInstance().findRoot(path...
testFindRootShouldNotBeFooledByRelativePath
270,758
void () { checkMustCreateRootWithCanonicalPath("x.jar"); }
testFindRootMustCreateFileWithCanonicalPath
270,759
void () { checkMustCreateRootWithCanonicalPath("x..jar"); }
testFindRootMustCreateFileWithStillCanonicalPath
270,760
void () { checkMustCreateRootWithCanonicalPath("x...jar"); }
testFindRootMustCreateFileWithYetAnotherCanonicalPath
270,761
void () { IoTestUtil.assumeWindows(); Ref<VirtualFile> subst = new Ref<>(); Ref<String> substPath = new Ref<>(); IoTestUtil.performTestOnWindowsSubst(tempDirectory.getRoot().getPath(), substRoot -> { substPath.set(substRoot.getPath()); subst.set(refreshAndFind(substRoot)); assertNotNull(substRoot.listFiles()); }); subs...
testDeleteSubstRoots
270,762
void () { VirtualFile tempRoot = VirtualFileManager.getInstance().findFileByUrl("temp:///"); assertNotNull(tempRoot); for (VirtualFile root : PersistentFS.getInstance().getLocalRoots()) { assertTrue("root=" + root, root.isInLocalFileSystem()); VirtualFileSystem fs = root.getFileSystem(); assertTrue("fs=" + fs, fs insta...
testLocalRoots
270,763
void () { PersistentFS pfs = PersistentFS.getInstance(); VirtualFile root0 = VirtualFileManager.getInstance().findFileByUrl("temp:///"); NewVirtualFileSystem tempFS = (NewVirtualFileSystem)root0.getFileSystem(); NewVirtualFile root1 = pfs.findRoot("/root1", tempFS); NewVirtualFile root2 = pfs.findRoot("/root2", tempFS)...
rootsAreReloadedAfterVFSReconnect
270,764
void () { File file = tempDirectory.newFile("file.txt"); String url = "jar://" + FileUtil.toSystemIndependentName(file.getPath()) + "!/"; assertNull(VirtualFileManager.getInstance().findFileByUrl(url)); }
testInvalidJarRootsIgnored
270,765
boolean (@NotNull String category, @NotNull String message, Throwable t) { if (message.contains(jarFile.getName())) logCount[0]++; return super.processWarn(category, message, t); }
processWarn
270,766
void (@NotNull List<? extends @NotNull VFileEvent> events) { for (VFileEvent event : events) { if (event instanceof VFileDeleteEvent) { process(((VFileDeleteEvent)event).getFile()); } } }
before
270,767
void (VirtualFile file) { String path = file.getPath(); eventLog.append(path, path.indexOf(testDirName) + testDirName.length() + 1, path.length()).append('\n'); ((NewVirtualFile)file).iterInDbChildren().forEach(child -> process(child)); }
process
270,768
void () { VirtualFile file = tempDirectory.newVirtualFile("file.txt"); checkEvents(""" Before: VFileDeleteEvent->file.txt After: VFileDeleteEvent->file.txt """, new VFileDeleteEvent(this, file), new VFileDeleteEvent(this, file)); }
testProcessEventsMustIgnoreDeleteDuplicates
270,769
void () { VirtualFile file = tempDirectory.newVirtualFile("file.txt"); checkEvents(""" Before: VFileCreateEvent->xx.created VFileDeleteEvent->file.txt After: VFileCreateEvent->xx.created VFileDeleteEvent->file.txt """, new VFileDeleteEvent(this, file), new VFileCreateEvent(this, file.getParent(), "xx.created", false, n...
testProcessEventsMustGroupDependentEventsCorrectly
270,770
void () { VirtualFile file = tempDirectory.newVirtualFile("d/x.txt"); checkEvents(""" Before: VFileDeleteEvent->d After: VFileDeleteEvent->d """, new VFileDeleteEvent(this, file.getParent()), new VFileDeleteEvent(this, file), new VFileDeleteEvent(this, file)); }
testProcessEventsMustBeAwareOfDeleteEventsDomination
270,771
void () { VirtualFile file = tempDirectory.newVirtualFile("d/x.txt"); checkEvents(""" Before: VFileCreateEvent->xx.created After: VFileCreateEvent->xx.created """, new VFileCreateEvent(this, file.getParent(), "xx.created", false, null, null, null), new VFileCreateEvent(this, file.getParent(), "xx.created", false, null,...
testProcessCreateEventsMustFilterOutDuplicates
270,772
void () { VirtualFile file = tempDirectory.newVirtualFile("a/b/c/test.txt"); checkEvents(""" Before: VFileCreateEvent->xx.created VFileCreateEvent->xx.created2 VFileDeleteEvent->test.txt After: VFileCreateEvent->xx.created VFileCreateEvent->xx.created2 VFileDeleteEvent->test.txt Before: VFileDeleteEvent->c After: VFile...
testProcessEventsMustGroupDependentEventsCorrectly2
270,773
void () { VirtualFile vFile = tempDirectory.newVirtualFile("a/b/c/test.txt"); checkEvents(""" Before: VFileContentChangeEvent->c After: VFileContentChangeEvent->c Before: VFileDeleteEvent->test.txt After: VFileDeleteEvent->test.txt """, new VFileContentChangeEvent(this, vFile.getParent(), 0, 0), new VFileDeleteEvent(th...
testProcessEventsMustGroupDependentEventsCorrectly3
270,774
void () { VirtualFile file = tempDirectory.newVirtualFile("a/b/c/test.txt"); VirtualFile file2 = tempDirectory.newVirtualFile("a/b/c/test2.txt"); checkEvents(""" Before: VFileDeleteEvent->test.txt After: VFileDeleteEvent->test.txt Before: VFileDeleteEvent->c After: VFileDeleteEvent->c """, new VFileDeleteEvent(this, fi...
testProcessNestedDeletions
270,775
void () { VirtualFile file = tempDirectory.newVirtualFile("a/b/c/test.txt"); checkEvents(""" Before: VFileContentChangeEvent->test.txt VFilePropertyChangeEvent->test.txt VFilePropertyChangeEvent->test.txt After: VFileContentChangeEvent->test.txt VFilePropertyChangeEvent->test.txt VFilePropertyChangeEvent->test.txt """,...
testProcessContentChangedLikeReconcilableEventsMustResultInSingleBatch
270,776
void () { VirtualFile testTxt = tempDirectory.newVirtualFile("a/b/c/test.txt"); VirtualFile newParent = tempDirectory.newVirtualDirectory("a/b/d"); checkEvents(""" Before: VFileMoveEvent->test.txt After: VFileMoveEvent->test.txt Before: VFileDeleteEvent->d After: VFileDeleteEvent->d """, new VFileMoveEvent(this, testTx...
testProcessCompositeMoveEvents
270,777
void () { VirtualFile file = tempDirectory.newVirtualFile("a/b/c/test.txt"); VirtualFile newParent = tempDirectory.newVirtualDirectory("a/b/d"); checkEvents(""" Before: VFileCopyEvent->new.txt After: VFileCopyEvent->new.txt Before: VFileDeleteEvent->test.txt After: VFileDeleteEvent->test.txt """, new VFileCopyEvent(thi...
testProcessCompositeCopyEvents
270,778
void () { VirtualFile file = tempDirectory.newVirtualFile("a/b/c/test.txt"); VirtualFile file2 = tempDirectory.newVirtualFile("a/b/c/test2.txt"); checkEvents(""" Before: VFileDeleteEvent->test2.txt After: VFileDeleteEvent->test2.txt Before: VFilePropertyChangeEvent->test.txt After: VFilePropertyChangeEvent->test2.txt "...
testProcessCompositeRenameEvents
270,779
void () { File file = tempDirectory.newFile("subDir1/subDir2/subDir3/file.txt"); VirtualFileSystemEntry vFile = (VirtualFileSystemEntry)refreshAndFind(file); VirtualFileSystemEntry vSubDir3 = vFile.getParent(); VirtualFileSystemEntry vSubDir2 = vSubDir3.getParent(); VirtualFileSystemEntry vSubDir1 = vSubDir2.getParent(...
testPersistentFsCacheDoesntContainInvalidFiles
270,780
void () { PersistentFSImpl fs = (PersistentFSImpl)PersistentFS.getInstance(); File file = tempDirectory.newFile("file.txt", "x".getBytes(UTF_8)); VirtualFile vDir = refreshAndFind(file.getParentFile()); VirtualFile vf = assertOneElement(vDir.getChildren()); assertEquals("file.txt", vf.getName()); List<Future<?>> future...
testMustNotDuplicateIdsOnRenameWithCaseChanged
270,781
void (@NotNull List<? extends @NotNull VFileEvent> e) { events.addAll(e); }
after
270,782
void (@NotNull List<? extends @NotNull VFileEvent> e) { events.addAll(e); }
after
270,783
void (@NotNull List<? extends @NotNull VFileEvent> e) { for (VFileEvent event : e) { VirtualFile evFile = event.getFile(); if (vDir.equals(evFile.getParent())) { events.add(event); } } }
after
270,784
void (@NotNull List<? extends @NotNull VFileEvent> e) { for (VFileEvent event : e) { VirtualFile evFile = event.getFile(); if (vDir.equals(evFile.getParent())) { events.add(event); } } }
after
270,785
void (String expectedEvents, VFileEvent... eventsToApply) { StringBuilder log = new StringBuilder(); MessageBusConnection connection = ApplicationManager.getApplication().getMessageBus().connect(); try { connection.subscribe(VirtualFileManager.VFS_CHANGES, new BulkFileListener() { @Override public void before(@NotNull ...
checkEvents
270,786
void (@NotNull List<? extends @NotNull VFileEvent> events) { log("Before:", events); }
before
270,787
void (@NotNull List<? extends @NotNull VFileEvent> events) { log("After:", events); }
after
270,788
void (String prefix, List<? extends VFileEvent> events) { log.append(prefix); for (VFileEvent e : events) { log.append(' ').append(e.getClass().getSimpleName()).append("->").append(PathUtil.getFileName(e.getPath())); } log.append('\n'); }
log
270,789
void (VirtualFile file) { assertTrue("children not loaded: " + file, ((VirtualDirectoryImpl)file).allChildrenLoaded()); assertTrue("children not loaded: " + file, PersistentFS.getInstance().areChildrenLoaded(file)); }
assertChildrenAreLoaded
270,790
int () { return myAttributeCallCount.get(); }
getAttributeCallCount
270,791
String () { return "jar-wrapper"; }
getProtocol
270,792
void (List<? extends VFileEvent> actual, VFileEvent... expected) { Set<VFileEvent> act = new HashSet<>(ContainerUtil.map(actual, e -> ignoreCrazyVFileContentChangedEquals(e))); Set<VFileEvent> exp = new HashSet<>(ContainerUtil.map(expected, e -> ignoreCrazyVFileContentChangedEquals(e))); if (!act.equals(exp)) { String ...
assertEqualUnorderedEvents
270,793
VFileEvent (VFileEvent exp) { if (exp instanceof VFileContentChangeEvent) { exp = new VFileContentChangeEvent(this, ((VFileContentChangeEvent)exp).getFile(), 0, 0, -1, -1, -1, -1); } return exp; }
ignoreCrazyVFileContentChangedEquals
270,794
VirtualFile (File file) { return Objects.requireNonNull(LocalFileSystem.getInstance().refreshAndFindFileByIoFile(file), file.getPath()); }
refreshAndFind
270,795
void (String jarName) { File x = tempDirectory.newFile(jarName); refreshAndFind(x); JarFileSystem jfs = JarFileSystem.getInstance(); String path = x.getPath() + "/../" + x.getName() + JarFileSystem.JAR_SEPARATOR; NewVirtualFile root = PersistentFS.getInstance().findRoot(path, jfs); assertNotNull(path, root); assertFals...
checkMustCreateRootWithCanonicalPath
270,796
void () { assertEquals( "Should be 0 records in the empty storage", 0, storage.recordsCount() ); }
recordsCountIsZeroForEmptyStorage
270,797
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; FSRecord record = (FSRecord)o; if (id != record.id) return false; if (parentRef != record.parentRef) return false; if (nameRef != record.nameRef) return false; if (flags != record.flags) return false; if (attribu...
equals
270,798
boolean (FSRecord other) { if (this == other) return true; if (other == null) return false; if (id != other.id) return false; if (parentRef != other.parentRef) return false; if (nameRef != other.nameRef) return false; if (flags != other.flags) return false; if (attributeRef != other.attributeRef) return false; if (cont...
equalsExceptModCount
270,799
int () { int result = id; result = 31 * result + parentRef; result = 31 * result + nameRef; result = 31 * result + flags; result = 31 * result + attributeRef; result = 31 * result + contentRef; result = 31 * result + (int)(timestamp ^ (timestamp >>> 32)); result = 31 * result + modCount; result = 31 * result + (int)(le...
hashCode