pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1866606 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java
Date Sun, 08 Sep 2019 09:26:49 GMT
Author: tilman
Date: Sun Sep  8 09:26:49 2019
New Revision: 1866606

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

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java?rev=1866606&r1=1866605&r2=1866606&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java
Sun Sep  8 09:26:49 2019
@@ -174,21 +174,19 @@ public class PDExtendedGraphicsState imp
     }
 
     /**
-     * Returns the provided default value in case 'standard' valu
-     * is <code>null</code>. To be used in cases unboxing may
-     * lead to a NPE.
-     *  
-     * @param _value  'standard' value
-     * @param _default  default value 
-     * 
-     * @return 'standard' value if not <code>null</code>
-     *         otherwise default value
+     * Returns the provided default value in case 'standard' value is <code>null</code>.
To be used
+     * in cases unboxing may lead to a NPE.
+     *
+     * @param standardValue 'standard' value
+     * @param defaultValue default value
+     *
+     * @return 'standard' value if not <code>null</code> otherwise default value
      */
-    private float defaultIfNull( Float _value, float _default ) 
+    private float defaultIfNull(Float standardValue, float defaultValue)
     {
-        return _value != null ? _value : _default;
+        return standardValue != null ? standardValue : defaultValue;
     }
-    
+
     /**
      * This will get the underlying dictionary that this class acts on.
      *



Mime
View raw message