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 2023/08/12 20:22:24 UTC

svn commit: r1911620 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSObject.java

Author: tilman
Date: Sat Aug 12 20:22:24 2023
New Revision: 1911620

URL: http://svn.apache.org/viewvc?rev=1911620&view=rev
Log:
PDFBOX-5650: deprecate methods that aren't available in 3.0

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSObject.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSObject.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSObject.java?rev=1911620&r1=1911619&r2=1911620&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSObject.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSObject.java Sat Aug 12 20:22:24 2023
@@ -51,7 +51,11 @@ public class COSObject extends COSBase i
      * @param key The key to the value that we are searching for.
      *
      * @return The pdf object that matches the key.
+     * 
+     * @deprecated This will be removed in 3.0. Call {@link #getObject()} to find out if it has the
+     * correct type and then call {@link #getDictionaryObject(org.apache.pdfbox.cos.COSName)}.
      */
+    @Deprecated
     public COSBase getDictionaryObject( COSName key )
     {
         COSBase retval =null;
@@ -68,7 +72,11 @@ public class COSObject extends COSBase i
      * @param key The key to the value that we are searching for.
      *
      * @return The pdf object that matches the key.
+     * 
+     * @deprecated This will be removed in 3.0. Call {@link #getObject()} to find out if it has the
+     * correct type and then call {@link #getDictionaryObject(org.apache.pdfbox.cos.COSName)}.
      */
+    @Deprecated
     public COSBase getItem( COSName key )
     {
         COSBase retval =null;