8264743: Add forRemoval for deprecated classes and method in javax/swing/plaf/basic

Reviewed-by: trebari, prr
This commit is contained in:
Prasanta Sadhukhan 2022-02-17 09:36:05 +00:00
parent c0275e18b7
commit b4900b1298
4 changed files with 9 additions and 9 deletions

View File

@ -228,7 +228,7 @@ public class BasicDirectoryModel extends AbstractListModel<Object> implements Pr
* @param e list data event
* @deprecated Obsolete method, not used anymore.
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
public void intervalAdded(ListDataEvent e) {
}
@ -237,7 +237,7 @@ public class BasicDirectoryModel extends AbstractListModel<Object> implements Pr
* @param e list data event
* @deprecated Obsolete method, not used anymore.
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
public void intervalRemoved(ListDataEvent e) {
}
@ -257,7 +257,7 @@ public class BasicDirectoryModel extends AbstractListModel<Object> implements Pr
* @param b another file
* @deprecated Obsolete method, not used anymore.
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
protected boolean lt(File a, File b) {
// First ignore case when comparing
int diff = a.getName().toLowerCase().compareTo(b.getName().toLowerCase());

View File

@ -928,7 +928,7 @@ public class BasicMenuItemUI extends MenuItemUI
* All its functionality has been moved into Handler.
* @deprecated
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
protected class MouseInputHandler implements MouseInputListener {
// NOTE: This class exists only for backward compatibility. All
// its functionality has been moved into Handler. If you need to add

View File

@ -500,7 +500,7 @@ public class BasicScrollPaneUI
* All its functionality has been moved into Handler.
* @deprecated
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
public class ViewportChangeHandler implements ChangeListener
{
/**
@ -534,7 +534,7 @@ public class BasicScrollPaneUI
* All its functionality has been moved into Handler.
* @deprecated
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
public class HSBChangeListener implements ChangeListener
{
/**
@ -577,7 +577,7 @@ public class BasicScrollPaneUI
* All its functionality has been moved into Handler.
* @deprecated
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
public class VSBChangeListener implements ChangeListener
{
/**
@ -786,7 +786,7 @@ public class BasicScrollPaneUI
* All its functionality has been moved into Handler.
* @deprecated
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
public class PropertyChangeHandler implements PropertyChangeListener
{
/**

View File

@ -551,7 +551,7 @@ public class BasicToolBarUI extends ToolBarUI implements SwingConstants
* @deprecated It is recommended that {@link BasicToolBarUI#createFloatingWindow(JToolBar)}
* be used instead
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
protected JFrame createFloatingFrame(JToolBar toolbar) {
Window window = SwingUtilities.getWindowAncestor(toolbar);
@SuppressWarnings("serial") // anonymous class