pdfbox-commits mailing list archives

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

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

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

Modified: pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/TextDialog.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/TextDialog.java?rev=1861396&r1=1861395&r2=1861396&view=diff
==============================================================================
--- pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/TextDialog.java (original)
+++ pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/ui/TextDialog.java Sat
Jun 15 14:23:33 2019
@@ -31,17 +31,6 @@ import javax.swing.JTextPane;
 public class TextDialog extends JDialog
 {
     private static TextDialog instance;
-
-    public static void init(Frame owner)
-    {
-        instance = new TextDialog(owner);
-    }
-
-    public static TextDialog instance()
-    {
-        return instance;
-    }
-
     private final JTextPane textPane;
     private final JScrollPane scrollPane;
 
@@ -55,6 +44,16 @@ public class TextDialog extends JDialog
         pack();
     }
 
+    public static void init(Frame owner)
+    {
+        instance = new TextDialog(owner);
+    }
+
+    public static TextDialog instance()
+    {
+        return instance;
+    }
+
     public void clear()
     {
         textPane.setText("");



Mime
View raw message