pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1690694 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationWidget.java
Date Mon, 13 Jul 2015 15:11:47 GMT
Author: tilman
Date: Mon Jul 13 15:11:47 2015
New Revision: 1690694

URL: http://svn.apache.org/r1690694
Log:
PDFBOX-2852: use COSName constants

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationWidget.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationWidget.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationWidget.java?rev=1690694&r1=1690693&r2=1690694&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationWidget.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationWidget.java
Mon Jul 13 15:11:47 2015
@@ -166,7 +166,7 @@ public class PDAnnotationWidget extends
      */
     public PDAnnotationAdditionalActions getActions()
     {
-        COSDictionary aa = (COSDictionary) this.getCOSObject().getDictionaryObject("AA");
+        COSDictionary aa = (COSDictionary) this.getCOSObject().getDictionaryObject(COSName.AA);
         PDAnnotationAdditionalActions retval = null;
         if (aa != null)
         {
@@ -182,7 +182,7 @@ public class PDAnnotationWidget extends
      */
     public void setActions(PDAnnotationAdditionalActions actions)
     {
-        this.getCOSObject().setItem("AA", actions);
+        this.getCOSObject().setItem(COSName.AA, actions);
     }
 
     /**
@@ -193,7 +193,7 @@ public class PDAnnotationWidget extends
      */
     public void setBorderStyle(PDBorderStyleDictionary bs)
     {
-        this.getCOSObject().setItem("BS", bs);
+        this.getCOSObject().setItem(COSName.BS, bs);
     }
 
     /**



Mime
View raw message