pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1861403 - /pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/ViewMenu.java
Date Sat, 15 Jun 2019 14:59:33 GMT
Author: tilman
Date: Sat Jun 15 14:59:33 2019
New Revision: 1861403

URL: http://svn.apache.org/viewvc?rev=1861403&view=rev
Log:
PDFBOX-2941: SonarQube fix

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

Modified: pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/ViewMenu.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/ViewMenu.java?rev=1861403&r1=1861402&r2=1861403&view=diff
==============================================================================
--- pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/ViewMenu.java (original)
+++ pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/ViewMenu.java Sat Jun
15 14:59:33 2019
@@ -42,7 +42,7 @@ public class ViewMenu extends MenuBase
     private JCheckBoxMenuItem showFontBBox;
     private JCheckBoxMenuItem showGlyphBounds;
     private JCheckBoxMenuItem allowSubsampling;
-    private static JMenuItem extractTextMenuItem;
+    private JMenuItem extractTextMenuItem;
     
     private final PDFDebugger pdfDebugger;
 
@@ -134,7 +134,7 @@ public class ViewMenu extends MenuBase
      */
     public static boolean isExtractText(ActionEvent actionEvent)
     {
-        return extractTextMenuItem.equals(actionEvent.getSource());
+        return EXTRACT_TEXT.equals(actionEvent.getActionCommand());
     }
 
     /**



Mime
View raw message