pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1670755 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFField.java
Date Wed, 01 Apr 2015 19:31:06 GMT
Author: tilman
Date: Wed Apr  1 19:31:06 2015
New Revision: 1670755

URL: http://svn.apache.org/r1670755
Log:
PDFBOX-2576: remove unneeded cast

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFField.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFField.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFField.java?rev=1670755&r1=1670754&r2=1670755&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFField.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFField.java Wed Apr
 1 19:31:06 2015
@@ -143,7 +143,7 @@ public class FDFField implements COSObje
         {
             for (FDFField kid : kids)
             {
-                ((FDFField) kid).writeXML(output);
+                kid.writeXML(output);
             }
         }
         output.write( "</field>\n");
@@ -154,6 +154,7 @@ public class FDFField implements COSObje
      *
      * @return The cos object that matches this Java object.
      */
+    @Override
     public COSBase getCOSObject()
     {
         return field;
@@ -776,7 +777,7 @@ public class FDFField implements COSObje
             default:
                 if (c > 0x7e)
                 {
-                    escapedXML.append("&#" + ((int) c) + ";");
+                    escapedXML.append("&#").append((int) c).append(";");
                 }
                 else
                 {



Mime
View raw message