pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1679096 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state: PDExtendedGraphicsState.java PDSoftMask.java
Date Tue, 12 May 2015 20:48:37 GMT
Author: tilman
Date: Tue May 12 20:48:37 2015
New Revision: 1679096

URL: http://svn.apache.org/r1679096
Log:
PDFBOX-2783: Use getCOSObject() instead of getDictionary()

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDExtendedGraphicsState.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDSoftMask.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=1679096&r1=1679095&r2=1679096&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
Tue May 12 20:48:37 2015
@@ -149,18 +149,8 @@ public class PDExtendedGraphicsState imp
      *
      * @return The underlying dictionary for this class.
      */
-    public COSDictionary getCOSDictionary()
-    {
-        return dict;
-    }
-
-    /**
-     * Convert this standard java object to a COS object.
-     *
-     * @return The cos object that matches this Java object.
-     */
     @Override
-    public COSBase getCOSObject()
+    public COSDictionary getCOSObject()
     {
         return dict;
     }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDSoftMask.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDSoftMask.java?rev=1679096&r1=1679095&r2=1679096&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDSoftMask.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/state/PDSoftMask.java
Tue May 12 20:48:37 2015
@@ -84,12 +84,7 @@ public final class PDSoftMask implements
     }
 
     @Override
-    public COSBase getCOSObject()
-    {
-        return dictionary;
-    }
-
-    public COSDictionary getCOSDictionary()
+    public COSDictionary getCOSObject()
     {
         return dictionary;
     }
@@ -101,7 +96,7 @@ public final class PDSoftMask implements
     {
         if (subType == null)
         {
-            subType = (COSName) getCOSDictionary().getDictionaryObject(COSName.S);
+            subType = (COSName) getCOSObject().getDictionaryObject(COSName.S);
         }
         return subType;
     }
@@ -116,7 +111,7 @@ public final class PDSoftMask implements
     {
         if (group == null)
         {
-            COSBase cosGroup = getCOSDictionary().getDictionaryObject(COSName.G);
+            COSBase cosGroup = getCOSObject().getDictionaryObject(COSName.G);
             if (cosGroup != null)
             {
                 group = (PDFormXObject) PDXObject
@@ -133,7 +128,7 @@ public final class PDSoftMask implements
     {
         if (backdropColor == null)
         {
-            backdropColor = (COSArray) getCOSDictionary().getDictionaryObject(COSName.BC);
+            backdropColor = (COSArray) getCOSObject().getDictionaryObject(COSName.BC);
         }
         return backdropColor;
     }
@@ -145,7 +140,7 @@ public final class PDSoftMask implements
     {
         if (transferFunction == null)
         {
-            COSBase cosTF = getCOSDictionary().getDictionaryObject(COSName.TR);
+            COSBase cosTF = getCOSObject().getDictionaryObject(COSName.TR);
             if (cosTF != null)
             {
                 transferFunction = PDFunction.create(cosTF);



Mime
View raw message