Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,8 @@ public void doLayout() {

/**
* Releases any internal references to external objects to aid garbage
* collection. This method is {@code public} and may be invoked manually for
* proactive memory management. Otherwise, this method is invoked by this
* {@code DockingSplitPane's} {@code finalize()} method.
* collection. {@code DefaultDockingPort} invokes it when it discards this
* split pane; it may also be invoked manually.
*/
public void cleanup() {
dockingPort = null;
Expand All @@ -358,9 +357,4 @@ public void setInitialDividerRatio(double ratio) {
initialDividerRatio = ratio;
}

@Override
protected void finalize() throws Throwable {
cleanup();
super.finalize();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,6 @@ private static URL replaceJarUrlWithFileUrl(URL url, String mediaUri) throws IOE
return f.toURL();
}

@Override
protected void finalize() {
if(player!=null) {
player.stop();
player.close();
player = null;
}
}

@Override
public Component getDragSource() {
return titlebar;
Expand Down
2 changes: 2 additions & 0 deletions release-notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Updates:
* Persist the selected tab of each tabbed docking group in the layout;
if none is stored, restore the last tab (as before), or the first tab
after DockingManager.setSelectFirstTabByDefault(true)
* DockingSplitPane: remove finalize(), which freed nothing (deprecated for
removal since Java 18)

Fixes:
* DockingPathSerializer: read all split nodes of a stored docking path
Expand Down
Loading