Skip to content

Commit f5962f5

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/COSArrayList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public COSArrayList( E actualObject, COSBase item, COSDictionary dictionary, COS
119119
{
120120
array = new COSArray();
121121
array.add( item );
122-
actual = new ArrayList<>();
122+
actual = new ArrayList<>(1);
123123
actual.add( actualObject );
124124

125125
parentDict = dictionary;

0 commit comments

Comments
 (0)