Skip to content

Commit 1d70930

Browse files
committed
Add comment to MemoryLimitsAwareOutputStream#write()
DEVSIX-3766
1 parent 77e4ac6 commit 1d70930

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/src/main/java/com/itextpdf/kernel/pdf/MemoryLimitsAwareOutputStream.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public MemoryLimitsAwareOutputStream setMaxStreamSize(int maxStreamSize) {
108108
*/
109109
@Override
110110
public synchronized void write(byte[] b, int off, int len) {
111+
// NOTE: in case this method is updated, the ManualCompressionTest should be run!
111112
if ((off < 0) || (off > b.length) || (len < 0) ||
112113
((off + len) - b.length > 0)) {
113114
throw new IndexOutOfBoundsException();

0 commit comments

Comments
 (0)