void () { final DummyFileSystem fs = (DummyFileSystem)getFileSystem(); fs.fireBeforeContentsChange(requestor, DummyFileImpl.this); final long oldModStamp = myModificationStamp; myContents = toByteArray(); myModificationStamp = newModificationStamp >= 0 ? newModificationStamp : LocalTimeCounter.currentTime(); fs.fireContentsChanged(requestor, DummyFileImpl.this, oldModStamp); }