You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2019/10/13 09:27:34 UTC
svn commit: r1868385 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/COSArrayList.java
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;