pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1603528 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java
Date Wed, 18 Jun 2014 17:02:09 GMT
Author: tilman
Date: Wed Jun 18 17:02:09 2014
New Revision: 1603528

URL: http://svn.apache.org/r1603528
Log:
PDFBOX-2147: use isEmpty() instead of .size() == 0

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java?rev=1603528&r1=1603527&r2=1603528&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java Wed Jun
18 17:02:09 2014
@@ -257,7 +257,7 @@ public class Type2CharString extends Typ
 
     private List<Integer> clearStack(List<Integer> numbers, boolean flag)
     {
-        if (type1Sequence.size() == 0)
+        if (type1Sequence.isEmpty())
         {
             if (flag)
             {



Mime
View raw message