pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1868385 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/COSArrayList.java
Date Sun, 13 Oct 2019 09:27:34 GMT
Author: msahyoun
Date: Sun Oct 13 09:27:34 2019
New Revision: 1868385

URL: http://svn.apache.org/viewvc?rev=1868385&view=rev
Log:
PDFBOX-4669: new method getCOSArray; deprecate toList as this will not return a  List but
the COSArray

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/COSArrayList.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/COSArrayList.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/COSArrayList.java?rev=1868385&r1=1868384&r2=1868385&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/COSArrayList.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/COSArrayList.java
Sun Oct 13 09:27:34 2019
@@ -668,10 +668,22 @@ public class COSArrayList<E> implements
     }
     
     /**
-     * This will return then underlying COSArray.
+     * This will return the underlying COSArray.
      * 
      * @return the COSArray
      */
+    public COSArray getCOSArray() 
+    {
+        return array;
+    }
+
+    /**
+     * This will return the underlying COSArray.
+     * 
+     * @deprecated use {@link #getCOSArray()} instead.
+     * @return the COSArray
+     */
+    @Deprecated
     public COSArray toList() 
     {
         return array;



Mime
View raw message