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 2019/08/19 16:35:55 UTC
svn commit: r1865478 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java
Author: tilman
Date: Mon Aug 19 16:35:55 2019
New Revision: 1865478
URL: http://svn.apache.org/viewvc?rev=1865478&view=rev
Log:
PDFBOX-4071: simplify code
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java?rev=1865478&r1=1865477&r2=1865478&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java Mon Aug 19 16:35:55 2019
@@ -1448,8 +1448,7 @@ public class COSDictionary extends COSBa
* If we're at a second trailer, we have a linearized pdf file, meaning that the first Size entry represents
* all of the objects so we don't need to grab the second.
*/
- if (!entry.getKey().getName().equals("Size")
- || !items.containsKey(COSName.getPDFName("Size")))
+ if (!COSName.SIZE.equals(entry.getKey()) || !items.containsKey(COSName.SIZE))
{
setItem(entry.getKey(), entry.getValue());
}