pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1861887 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type5ShadingContext.java
Date Sat, 22 Jun 2019 17:16:07 GMT
Author: tilman
Date: Sat Jun 22 17:16:07 2019
New Revision: 1861887

URL: http://svn.apache.org/viewvc?rev=1861887&view=rev
Log:
PDFBOX-4071: SonarQube fix

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

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type5ShadingContext.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type5ShadingContext.java?rev=1861887&r1=1861886&r2=1861887&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type5ShadingContext.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type5ShadingContext.java
Sat Jun 22 17:16:07 2019
@@ -99,7 +99,7 @@ class Type5ShadingContext extends Gourau
                 break;
             }
         }
-        int sz = vlist.size(), rowNum = sz / numPerRow;
+        int rowNum = vlist.size() / numPerRow;
         Vertex[][] latticeArray = new Vertex[rowNum][numPerRow];
         if (rowNum < 2)
         {



Mime
View raw message