pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1617135 - in /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading: CubicBezierCurve.java Vertex.java
Date Sun, 10 Aug 2014 17:31:32 GMT
Author: tilman
Date: Sun Aug 10 17:31:31 2014
New Revision: 1617135

URL: http://svn.apache.org/r1617135
Log:
PDFBOX-1915: replace String.isEmpty()

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/CubicBezierCurve.java
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Vertex.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/CubicBezierCurve.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/CubicBezierCurve.java?rev=1617135&r1=1617134&r2=1617135&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/CubicBezierCurve.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/CubicBezierCurve.java
Sun Aug 10 17:31:31 2014
@@ -98,7 +98,7 @@ class CubicBezierCurve
         String pointStr = "";
         for (Point2D p : controlPoints)
         {
-            if (!pointStr.isEmpty())
+            if (pointStr.length() > 0)
             {
                 pointStr += " ";
             }

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Vertex.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Vertex.java?rev=1617135&r1=1617134&r2=1617135&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Vertex.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Vertex.java
Sun Aug 10 17:31:31 2014
@@ -40,7 +40,7 @@ class Vertex
         String colorStr = "";
         for (float f : color)
         {
-            if (!colorStr.isEmpty())
+            if (colorStr.length() > 0)
             {
                 colorStr += " ";
             }



Mime
View raw message