Author: msahyoun
Date: Mon Mar 12 07:00:58 2018
New Revision: 1826511

URL: http://svn.apache.org/viewvc?rev=1826511&view=rev
Log:
PDFBOX-4071: make public menu items final

Modified:
    
pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java

Modified: 
pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java
URL: 
http://svn.apache.org/viewvc/pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java?rev=1826511&r1=1826510&r2=1826511&view=diff
==============================================================================
--- 
pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java 
(original)
+++ 
pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java 
Mon Mar 12 07:00:58 2018
@@ -165,11 +165,11 @@ public class PDFDebugger extends JFrame
 
     // view menu
     private JMenuItem viewModeItem;
-    public static JCheckBoxMenuItem showTextStripper;
-    public static JCheckBoxMenuItem showTextStripperBeads;
-    public static JCheckBoxMenuItem showFontBBox;
-    public static JCheckBoxMenuItem showGlyphBounds;
-    public static JCheckBoxMenuItem allowSubsampling;
+    public static final JCheckBoxMenuItem showTextStripper = new 
JCheckBoxMenuItem("Show TextStripper TextPositions");
+    public static final JCheckBoxMenuItem showTextStripperBeads = new 
JCheckBoxMenuItem("Show TextStripper Beads");
+    public static final JCheckBoxMenuItem showFontBBox = new 
JCheckBoxMenuItem("Show Approximate Text Bounds");
+    public static final JCheckBoxMenuItem showGlyphBounds = new 
JCheckBoxMenuItem("Show Glyph Bounds");
+    public static final JCheckBoxMenuItem allowSubsampling = new 
JCheckBoxMenuItem("Allow subsampling");
     
     // configuration
     public static Properties configuration = new Properties();
@@ -630,25 +630,20 @@ public class PDFDebugger extends JFrame
 
         viewMenu.addSeparator();
         
-        showTextStripper = new JCheckBoxMenuItem("Show TextStripper 
TextPositions");
         showTextStripper.setEnabled(false);
         viewMenu.add(showTextStripper);
 
-        showTextStripperBeads = new JCheckBoxMenuItem("Show TextStripper 
Beads");
         showTextStripperBeads.setEnabled(false);
         viewMenu.add(showTextStripperBeads);
         
-        showFontBBox = new JCheckBoxMenuItem("Show Approximate Text Bounds");
         showFontBBox.setEnabled(false);
         viewMenu.add(showFontBBox);
         
-        showGlyphBounds = new JCheckBoxMenuItem("Show Glyph Bounds");
         showGlyphBounds.setEnabled(false);
         viewMenu.add(showGlyphBounds);
 
         viewMenu.addSeparator();
 
-        allowSubsampling = new JCheckBoxMenuItem("Allow subsampling");
         allowSubsampling.setEnabled(false);
         viewMenu.add(allowSubsampling);
 


Reply via email to