pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1662311 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java
Date Wed, 25 Feb 2015 22:00:25 GMT
Author: jahewson
Date: Wed Feb 25 22:00:25 2015
New Revision: 1662311

URL: http://svn.apache.org/r1662311
Log:
PDFBOX-2576: Use lower case for non-constants

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java?rev=1662311&r1=1662310&r2=1662311&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java Wed Feb
25 22:00:25 2015
@@ -57,8 +57,7 @@ public class PDFTextStripper extends PDF
 {
     private static float defaultIndentThreshold = 2.0f;
     private static float defaultDropThreshold = 2.5f;
-
-    private static final boolean USE_CUSTOM_QUICKSORT;
+    private static final boolean useCustomQuickSort;
     
     // enable the ability to set the default indent/drop thresholds
     // with -D system properties:
@@ -119,7 +118,7 @@ public class PDFTextStripper extends PDF
             // when run in an applet ignore and use default
             // assume 1.7 or higher so that quicksort is used
         }
-        USE_CUSTOM_QUICKSORT = !is16orLess;
+        useCustomQuickSort = !is16orLess;
     }
 
     /**
@@ -457,7 +456,7 @@ public class PDFTextStripper extends PDF
                 // because the TextPositionComparator is not transitive, but 
                 // JDK7+ enforces transitivity on comparators, we need to use
                 // a custom quicksort implementation (which is slower, unfortunately).
-                if(USE_CUSTOM_QUICKSORT) 
+                if (useCustomQuickSort) 
                 {
                     QuickSort.sort(textList, comparator);
                 }



Mime
View raw message