pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1865709 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/ShadedTriangle.java
Date Thu, 22 Aug 2019 18:45:07 GMT
Author: tilman
Date: Thu Aug 22 18:45:06 2019
New Revision: 1865709

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

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

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/ShadedTriangle.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/ShadedTriangle.java?rev=1865709&r1=1865708&r2=1865709&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/ShadedTriangle.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/ShadedTriangle.java
Thu Aug 22 18:45:06 2019
@@ -156,7 +156,7 @@ class ShadedTriangle
     {
         if (degree == 1)
         {
-            return overlaps(corner[0], p) | overlaps(corner[1], p) | overlaps(corner[2],
p);
+            return overlaps(corner[0], p) || overlaps(corner[1], p) || overlaps(corner[2],
p);
         }
         else if (degree == 2)
         {



Mime
View raw message