From commits-return-15905-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Sun Oct 13 09:27:35 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 7911A18065D for ; Sun, 13 Oct 2019 11:27:35 +0200 (CEST) Received: (qmail 84835 invoked by uid 500); 13 Oct 2019 09:27:34 -0000 Mailing-List: contact commits-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list commits@pdfbox.apache.org Received: (qmail 84826 invoked by uid 99); 13 Oct 2019 09:27:34 -0000 Received: from Unknown (HELO svn01-us-east.apache.org) (13.90.137.153) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Oct 2019 09:27:34 +0000 Received: from svn01-us-east.apache.org (localhost [127.0.0.1]) by svn01-us-east.apache.org (ASF Mail Server at svn01-us-east.apache.org) with ESMTP id 5988E17BB9F for ; Sun, 13 Oct 2019 09:27:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@pdfbox.apache.org From: msahyoun@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20191013092734.5988E17BB9F@svn01-us-east.apache.org> 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 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;