Skip to content

Commit ade08f8

Browse files
committed
PDFBOX-5660: refactor, avoid leaking this in constructor
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1934028 13f79535-47bb-0310-9956-ffa450edef68
1 parent f3f5935 commit ade08f8

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ public void windowClosing(WindowEvent evt)
427427
getContentPane().add(jSplitPane, BorderLayout.CENTER);
428428

429429
statusBar = new ReaderBottomPanel();
430+
statusBar.init();
430431
getContentPane().add(statusBar, BorderLayout.SOUTH);
431432

432433
// create menus

debugger/src/main/java/org/apache/pdfbox/debugger/ui/ReaderBottomPanel.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ public class ReaderBottomPanel extends JPanel
4343
private JLabel logLabel = null;
4444

4545
public ReaderBottomPanel()
46+
{
47+
// call init() after construction
48+
}
49+
50+
/**
51+
* Initialization, to be called immediately after construction.
52+
*/
53+
public void init()
4654
{
4755
BorderLayout layout = new BorderLayout();
4856
this.setLayout(layout);

0 commit comments

Comments
 (0)