Skip to content

Commit 88086f5

Browse files
committed
PDFBOX-5660: optimize, as suggested by Valery Bokov; closes #228
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1928063 13f79535-47bb-0310-9956-ffa450edef68
1 parent f383393 commit 88086f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/compress/COSWriterObjectStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ private void writeCOSName(OutputStream output, COSName cosName) throws IOExcepti
314314
private void writeCOSArray(OutputStream output, COSArray cosArray) throws IOException
315315
{
316316
output.write(COSWriter.ARRAY_OPEN);
317-
for (COSBase value : cosArray.toList())
317+
for (COSBase value : cosArray)
318318
{
319319
if (value == null)
320320
{

0 commit comments

Comments
 (0)