pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1791998 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java
Date Wed, 19 Apr 2017 22:01:58 GMT
Author: tilman
Date: Wed Apr 19 22:01:58 2017
New Revision: 1791998

URL: http://svn.apache.org/viewvc?rev=1791998&view=rev
Log:
PDFBOX-2852: remove unused import, make field final, correct formatting

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=1791998&r1=1791997&r2=1791998&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 Apr
19 22:01:58 2017
@@ -25,7 +25,6 @@ import java.io.Writer;
 import java.text.Bidi;
 import java.text.Normalizer;
 import java.util.ArrayList;
-import java.util.Collections;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.LinkedList;
@@ -1804,7 +1803,7 @@ public class PDFTextStripper extends Leg
         return result.toString();
     }
 
-    private static Map<Character, Character> MIRRORING_CHAR_MAP = new HashMap<>();
+    private static final Map<Character, Character> MIRRORING_CHAR_MAP = new HashMap<>();
 
     static
     {
@@ -1874,8 +1873,8 @@ public class PDFTextStripper extends Leg
                 // initialize the MIRRORING_CHAR_MAP
                 MIRRORING_CHAR_MAP.put(fields[0], fields[1]);
             }
-
-        } while (true);
+        }
+        while (true);
     }
 
     /**



Mime
View raw message