Skip to content

Commit 0d4f6f2

Browse files
committed
Minor changes in SmartModePdfObjectsSerializer.
DEVSIX-1228
1 parent bf0683f commit 0d4f6f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ private void serObject(PdfObject obj, ByteBufferOutputStream bb, int level, Map<
136136
}
137137

138138
if (savedBb != null) {
139-
// TODO getBuffer? won't it contain garbage also?
140-
serializedCache.put(reference, bb.getBuffer());
139+
serializedCache.put(reference, bb.toByteArray());
141140
savedBb.append(bb);
142141
}
143142
}

0 commit comments

Comments
 (0)