Skip to content

Commit b6039de

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1814,7 +1814,7 @@ protected List<Pattern> getListItemPatterns()
18141814
{
18151815
if (listOfPatterns == null)
18161816
{
1817-
listOfPatterns = new ArrayList<>();
1817+
listOfPatterns = new ArrayList<>(LIST_ITEM_EXPRESSIONS.length);
18181818
for (String expression : LIST_ITEM_EXPRESSIONS)
18191819
{
18201820
Pattern p = Pattern.compile(expression);

0 commit comments

Comments
 (0)