pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1647525 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/service/interactive/form/AppearanceGenerator.java
Date Tue, 23 Dec 2014 09:54:22 GMT
Author: msahyoun
Date: Tue Dec 23 09:54:22 2014
New Revision: 1647525

URL: http://svn.apache.org/r1647525
Log:
PDFBOX-2576 mark class as final

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/service/interactive/form/AppearanceGenerator.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/service/interactive/form/AppearanceGenerator.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/service/interactive/form/AppearanceGenerator.java?rev=1647525&r1=1647524&r2=1647525&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/service/interactive/form/AppearanceGenerator.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/service/interactive/form/AppearanceGenerator.java
Tue Dec 23 09:54:22 2014
@@ -31,7 +31,7 @@ import org.apache.pdfbox.pdmodel.interac
  * 
  */
 
-public class AppearanceGenerator
+public final class AppearanceGenerator
 {
 
     private static final Log LOG = LogFactory.getLog(AppearanceGenerator.class);
@@ -78,7 +78,7 @@ public class AppearanceGenerator
                     LOG.debug("Unable to generate the field appearance.", e);
                 }
             }
-            else
+            else if (fieldValue != null)
             {
                 LOG.debug("Can't generate the appearance for values typed "
                         + fieldValue.getClass().getName() + ".");



Mime
View raw message