pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1816244 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/PDShading.java
Date Fri, 24 Nov 2017 16:53:40 GMT
Author: tilman
Date: Fri Nov 24 16:53:40 2017
New Revision: 1816244

URL: http://svn.apache.org/viewvc?rev=1816244&view=rev
Log:
PDFBOX-2852: rename parameter (it is not the resource dictionary)

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/PDShading.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/PDShading.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/PDShading.java?rev=1816244&r1=1816243&r2=1816244&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/PDShading.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/PDShading.java
Fri Nov 24 16:53:40 2017
@@ -252,36 +252,36 @@ public abstract class PDShading implemen
     /**
      * Create the correct PD Model shading based on the COS base shading.
      *
-     * @param resourceDictionary the COS shading dictionary
+     * @param shadingDictionary the COS shading dictionary
      * @return the newly created shading resources object
      * @throws IOException if we are unable to create the PDShading object
      */
-    public static PDShading create(COSDictionary resourceDictionary) throws IOException
+    public static PDShading create(COSDictionary shadingDictionary) throws IOException
     {
         PDShading shading = null;
-        int shadingType = resourceDictionary.getInt(COSName.SHADING_TYPE, 0);
+        int shadingType = shadingDictionary.getInt(COSName.SHADING_TYPE, 0);
         switch (shadingType)
         {
             case SHADING_TYPE1:
-                shading = new PDShadingType1(resourceDictionary);
+                shading = new PDShadingType1(shadingDictionary);
                 break;
             case SHADING_TYPE2:
-                shading = new PDShadingType2(resourceDictionary);
+                shading = new PDShadingType2(shadingDictionary);
                 break;
             case SHADING_TYPE3:
-                shading = new PDShadingType3(resourceDictionary);
+                shading = new PDShadingType3(shadingDictionary);
                 break;
             case SHADING_TYPE4:
-                shading = new PDShadingType4(resourceDictionary);
+                shading = new PDShadingType4(shadingDictionary);
                 break;
             case SHADING_TYPE5:
-                shading = new PDShadingType5(resourceDictionary);
+                shading = new PDShadingType5(shadingDictionary);
                 break;
             case SHADING_TYPE6:
-                shading = new PDShadingType6(resourceDictionary);
+                shading = new PDShadingType6(shadingDictionary);
                 break;
             case SHADING_TYPE7:
-                shading = new PDShadingType7(resourceDictionary);
+                shading = new PDShadingType7(shadingDictionary);
                 break;
             default:
                 throw new IOException("Error: Unknown shading type " + shadingType);



Mime
View raw message