pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1689499 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionJavaScript.java
Date Mon, 06 Jul 2015 21:00:56 GMT
Author: tilman
Date: Mon Jul  6 21:00:56 2015
New Revision: 1689499

URL: http://svn.apache.org/r1689499
Log:
PDFBOX-2852: avoid overridable method call during object construction; use constant

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionJavaScript.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionJavaScript.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionJavaScript.java?rev=1689499&r1=1689498&r2=1689499&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionJavaScript.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDActionJavaScript.java
Mon Jul  6 21:00:56 2015
@@ -67,9 +67,9 @@ public class PDActionJavaScript extends
     /**
      * @param sAction The JavaScript.
      */
-    public void setAction(String sAction)
+    public final void setAction(String sAction)
     {
-        action.setString("JS", sAction);
+        action.setString(COSName.JS, sAction);
     }
 
     /**



Mime
View raw message