mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnostics
This commit is contained in:
@@ -56,7 +56,7 @@ public class PagedFileStorage implements Forceable {
|
||||
|
||||
int off = key.page * BUFFER_SIZE;
|
||||
if (off > key.owner.length()) {
|
||||
throw new IndexOutOfBoundsException();
|
||||
throw new IndexOutOfBoundsException("off=" + off + " key.owner.length()=" + key.owner.length());
|
||||
}
|
||||
return new ReadWriteMappedBufferWrapper(key.owner.myFile, off, Math.min((int)(key.owner.length() - off), BUFFER_SIZE));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user