pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1868377 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/COSArrayList.java
Date Sat, 12 Oct 2019 23:03:47 GMT
Author: msahyoun
Date: Sat Oct 12 23:03:46 2019
New Revision: 1868377

URL: http://svn.apache.org/viewvc?rev=1868377&view=rev
Log:
PDFBOX-4669: simplify code

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=1868377&r1=1868376&r2=1868377&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
Sat Oct 12 23:03:46 2019
@@ -608,8 +608,8 @@ public class COSArrayList<E> implements
     public E remove(int index)
     {
         E toBeRemoved = actual.get(index);
-        boolean result = remove(toBeRemoved);
-        return result ? toBeRemoved : null;
+        remove(toBeRemoved);
+        return toBeRemoved;
     }
 
     /**



Mime
View raw message