pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1774905 - /pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java
Date Sun, 18 Dec 2016 16:53:43 GMT
Author: tilman
Date: Sun Dec 18 16:53:43 2016
New Revision: 1774905

URL: http://svn.apache.org/viewvc?rev=1774905&view=rev
Log:
PDFBOX-2852: simplify code

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=1774905&r1=1774904&r2=1774905&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 Sun Dec
18 16:53:43 2016
@@ -164,7 +164,7 @@ public class PDFDebugger extends JFrame
     public static JCheckBoxMenuItem showGlyphBounds;
     
     // configuration
-    public static Properties configuration;
+    public static Properties configuration = new Properties();
     
     /**
      * Constructor.
@@ -277,7 +277,6 @@ public class PDFDebugger extends JFrame
             try
             {
                 InputStream is = new FileInputStream(file);
-                configuration = new Properties();
                 configuration.load(is);
                 is.close();
             }
@@ -286,10 +285,6 @@ public class PDFDebugger extends JFrame
                 throw new RuntimeException(e);
             }
         }
-        else
-        {
-            configuration = new Properties();
-        }
     }
     
     /**



Mime
View raw message