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:42 UTC

svn commit: r1865476 - /pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java

Author: tilman
Date: Mon Aug 19 16:35:42 2019
New Revision: 1865476

URL: http://svn.apache.org/viewvc?rev=1865476&view=rev
Log:
PDFBOX-4071: simplify code

Modified:
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java?rev=1865476&r1=1865475&r2=1865476&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java Mon Aug 19 16:35:42 2019
@@ -1444,8 +1444,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());
             }