pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1783269 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Date Thu, 16 Feb 2017 18:28:27 GMT
Author: tilman
Date: Thu Feb 16 18:28:27 2017
New Revision: 1783269

URL: http://svn.apache.org/viewvc?rev=1783269&view=rev
Log:
PDFBOX-2852: Remove useless parentheses

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1783269&r1=1783268&r2=1783269&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java Thu Feb
16 18:28:27 2017
@@ -247,7 +247,7 @@ public class PageDrawer extends PDFGraph
 
     private float clampColor(float color)
     {
-        return (color < 0 ? 0 : (color > 1 ? 1 : color));        
+        return color < 0 ? 0 : (color > 1 ? 1 : color);        
     }
 
     /**



Mime
View raw message