pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1661225 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
Date Fri, 20 Feb 2015 21:20:51 GMT
Author: tilman
Date: Fri Feb 20 21:20:51 2015
New Revision: 1661225

URL: http://svn.apache.org/r1661225
Log:
PDFBOX-2576: don't use constant naming schema for variables that are not real constants

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java?rev=1661225&r1=1661224&r2=1661225&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java Fri Feb
20 21:20:51 2015
@@ -58,8 +58,8 @@ import org.apache.pdfbox.text.TextPositi
  */
 public class PDFTextStripper extends PDFTextStreamEngine
 {
-    private static float DEFAULT_INDENT_THRESHOLD = 2.0f;
-    private static float DEFAULT_DROP_THRESHOLD = 2.5f;
+    private static float defaultIndentThreshold = 2.0f;
+    private static float defaultDropThreshold = 2.5f;
 
     private static final boolean useCustomQuicksort;
     
@@ -87,7 +87,7 @@ public class PDFTextStripper extends PDF
         {
             try
             {
-                DEFAULT_INDENT_THRESHOLD = Float.parseFloat(strIndent);
+                defaultIndentThreshold = Float.parseFloat(strIndent);
             }
             catch (NumberFormatException nfe)
             {
@@ -98,7 +98,7 @@ public class PDFTextStripper extends PDF
         {
             try
             {
-                DEFAULT_DROP_THRESHOLD = Float.parseFloat(strDrop);
+                defaultDropThreshold = Float.parseFloat(strDrop);
             }
             catch (NumberFormatException nfe)
             {
@@ -151,8 +151,8 @@ public class PDFTextStripper extends PDF
     private boolean sortByPosition = false;
     private boolean addMoreFormatting = false;
     
-    private float indentThreshold = DEFAULT_INDENT_THRESHOLD;
-    private float dropThreshold = DEFAULT_DROP_THRESHOLD;
+    private float indentThreshold = defaultIndentThreshold;
+    private float dropThreshold = defaultDropThreshold;
 
     // we will need to estimate where to add spaces, these are used to help guess
     private float spacingTolerance = .5f;



Mime
View raw message