pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1795663 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java
Date Sat, 20 May 2017 15:30:03 GMT
Author: tilman
Date: Sat May 20 15:30:03 2017
New Revision: 1795663

URL: http://svn.apache.org/viewvc?rev=1795663&view=rev
Log:
PDFBOX-3795: deprecate/remove mergeInto due to problems

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=1795663&r1=1795662&r2=1795663&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 Sat
May 20 15:30:03 2017
@@ -1386,7 +1386,11 @@ public class COSDictionary extends COSBa
      * key already exists in this dictionary then nothing is changed.
      *
      * @param dic The dic to get the keys from.
+     * 
+     * @deprecated This method should no longer be used and will be removed in 3.0 because
it could
+     * also merge attributes that should not be merged (filter and length in a COSStream.
      */
+    @Deprecated
     public void mergeInto(COSDictionary dic)
     {
         for (Map.Entry<COSName, COSBase> entry : dic.entrySet())



Mime
View raw message