You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2021/10/02 16:51:20 UTC
svn commit: r1893829 -
/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/NextLine.java
Author: tilman
Date: Sat Oct 2 16:51:20 2021
New Revision: 1893829
URL: http://svn.apache.org/viewvc?rev=1893829&view=rev
Log:
PDFBOX-4892: reduce memory usage, as suggested by valerybokov
Modified:
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/NextLine.java
Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/NextLine.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/NextLine.java?rev=1893829&r1=1893828&r2=1893829&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/NextLine.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/text/NextLine.java Sat Oct 2 16:51:20 2021
@@ -37,7 +37,7 @@ public class NextLine extends OperatorPr
public void process(Operator operator, List<COSBase> arguments) throws IOException
{
//move to start of next text line
- List<COSBase> args = new ArrayList<>();
+ List<COSBase> args = new ArrayList<>(2);
args.add(new COSFloat(0f));
// this must be -leading instead of just leading as written in the
// specification (p.369) the acrobat reader seems to implement it the same way