pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1854472 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFCloneUtility.java
Date Wed, 27 Feb 2019 16:51:31 GMT
Author: tilman
Date: Wed Feb 27 16:51:31 2019
New Revision: 1854472

URL: http://svn.apache.org/viewvc?rev=1854472&view=rev
Log:
PDFBOX-4475: remove code line that is called again immediately after (but keep the lines where
the later call is not immediate)

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFCloneUtility.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFCloneUtility.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFCloneUtility.java?rev=1854472&r1=1854471&r2=1854472&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFCloneUtility.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFCloneUtility.java Wed
Feb 27 16:51:31 2019
@@ -100,13 +100,11 @@ class PDFCloneUtility
           else if( base instanceof COSObjectable && !(base instanceof COSBase) )
           {
               retval = cloneForNewDocument( ((COSObjectable)base).getCOSObject() );
-              clonedVersion.put( base, retval );
           }
           else if( base instanceof COSObject )
           {
               COSObject object = (COSObject)base;
               retval = cloneForNewDocument( object.getObject() );
-              clonedVersion.put( base, retval );
           }
           else if( base instanceof COSArray )
           {
@@ -117,7 +115,6 @@ class PDFCloneUtility
                   newArray.add( cloneForNewDocument( array.get( i ) ) );
               }
               retval = newArray;
-              clonedVersion.put( base, retval );
           }
           else if( base instanceof COSStream )
           {
@@ -180,7 +177,6 @@ class PDFCloneUtility
           if (!(base instanceof COSBase))
           {
               cloneMerge(base.getCOSObject(), target.getCOSObject());
-              clonedVersion.put(base, retval);
           }
           else if( base instanceof COSObject )
           {
@@ -192,7 +188,6 @@ class PDFCloneUtility
               {
                   cloneMerge(((COSObject) base).getObject(), target);
               }
-              clonedVersion.put( base, retval );
           }
           else if( base instanceof COSArray )
           {
@@ -201,7 +196,6 @@ class PDFCloneUtility
               {
                   ((COSArray)target).add( cloneForNewDocument( array.get( i ) ) );
               }
-              clonedVersion.put( base, retval );
           }
           else if( base instanceof COSStream )
           {



Mime
View raw message