pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1691032 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java
Date Tue, 14 Jul 2015 16:28:45 GMT
Author: tilman
Date: Tue Jul 14 16:28:45 2015
New Revision: 1691032

URL: http://svn.apache.org/r1691032
Log:
PDFBOX-2852, PDFBOX-2530: reduce code complexity; null parameter for setText() is legit

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

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java?rev=1691032&r1=1691031&r2=1691032&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java Tue Jul 14 16:28:45
2015
@@ -505,15 +505,7 @@ public class PDFDebugger extends javax.s
                 {
                     jSplitPane1.setRightComponent(jScrollPane2);
                 }
-                String data = convertToString(selectedNode);
-                if (data != null)
-                {
-                    jTextPane1.setText(data);
-                }
-                else
-                {
-                    jTextPane1.setText("");
-                }
+                jTextPane1.setText(convertToString(selectedNode));
             }
             catch (Exception e)
             {



Mime
View raw message