diff --git a/CHANGELOG.md b/CHANGELOG.md index 973247b..043d5f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file. * feat: test UI behavior with Assertj-Swing-JUnit (#7) * refactor: annotate deprecations, avoid access to internal class of other class(#6) * refactor: avoid redundant casts (#6) +* refactor: DockingDesktop class not to initialize in static context(#12) ## [v3.0.5-2] * chore: use nexus-publish plugin to release diff --git a/src/main/java/com/vlsolutions/swing/docking/DockingDesktop.java b/src/main/java/com/vlsolutions/swing/docking/DockingDesktop.java index 6ace23a..190b922 100644 --- a/src/main/java/com/vlsolutions/swing/docking/DockingDesktop.java +++ b/src/main/java/com/vlsolutions/swing/docking/DockingDesktop.java @@ -47,7 +47,6 @@ import java.awt.Rectangle; import java.awt.Window; import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; import java.awt.event.ComponentAdapter; import java.awt.event.ComponentEvent; import java.awt.event.ComponentListener; @@ -60,10 +59,7 @@ import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.io.*; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.LinkedList; +import java.util.*; import javax.swing.AbstractAction; import javax.swing.JComponent; import javax.swing.JLayeredPane; @@ -91,7 +87,7 @@ /** * The DockingDesktop is the main class of the VLDocking Framework. *

- * It is the equivalent of what is JDesktopPane for JInternalWindow : a JLayeredPane customized to include : + * It is the equivalent of what is JDesktopPane for JInternalWindow: a JLayeredPane customized to include : *