You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2015/05/07 08:31:51 UTC

svn commit: r1678133 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java

Author: tilman
Date: Thu May  7 06:31:50 2015
New Revision: 1678133

URL: http://svn.apache.org/r1678133
Log:
PDFBOX-2576: remove public modifyer in non-public class; remove unneeded assignments

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java?rev=1678133&r1=1678132&r2=1678133&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java Thu May  7 06:31:50 2015
@@ -73,7 +73,7 @@ class AppearanceGeneratorHelper
      * @param field the field which you wish to control the appearance of
      * @throws IOException 
      */
-    public AppearanceGeneratorHelper(PDAcroForm acroForm, PDVariableText field) throws IOException
+    AppearanceGeneratorHelper(PDAcroForm acroForm, PDVariableText field) throws IOException
     {
         this.acroForm = acroForm;
         parent = field;
@@ -304,7 +304,7 @@ class AppearanceGeneratorHelper
         // calculation of the vertical offset from where the text will be printed 
         float verticalOffset = calculateVerticalOffset(paddingEdge, contentEdge, font, fontSize);
 
-        float leftOffset = 0f;
+        float leftOffset;
 
         // show the text
         if (!isMultiLine())
@@ -576,7 +576,7 @@ class AppearanceGeneratorHelper
         // Acrobat aligns left regardless of the quadding if the text is wider than the remaining
         // width
         float stringWidth = pdFont.getStringWidth(value) / GLYPH_TO_PDF_SCALE * fontSize;
-        float leftOffset = 0f;
+        float leftOffset;
         
         int q = parent.getQ();