mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnostics
This commit is contained in:
@@ -173,7 +173,9 @@ public class PagedFileStorage implements Forceable {
|
||||
@NotNull
|
||||
private ByteBufferWrapper createValue(Integer key) {
|
||||
checkThreadAccess();
|
||||
PagedFileStorage owner = getRegisteredPagedFileStorageByIndex(key & FILE_INDEX_MASK);
|
||||
final int storageIndex = key & FILE_INDEX_MASK;
|
||||
PagedFileStorage owner = getRegisteredPagedFileStorageByIndex(storageIndex);
|
||||
assert owner != null: "No storage for index " + storageIndex;
|
||||
int off = (key & MAX_PAGES_COUNT) * owner.myPageSize;
|
||||
if (off > owner.length()) {
|
||||
throw new IndexOutOfBoundsException("off=" + off + " key.owner.length()=" + owner.length());
|
||||
|
||||
Reference in New Issue
Block a user