Skip to content

Commit

Permalink
8264743: Add forRemoval for deprecated classes and method in javax/sw…
Browse files Browse the repository at this point in the history
…ing/plaf/basic

Reviewed-by: trebari, prr
  • Loading branch information
prsadhuk committed Feb 17, 2022
1 parent c0275e1 commit b4900b1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public Object getElementAt(int index) {
* @param e list data event
* @deprecated Obsolete method, not used anymore.
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
public void intervalAdded(ListDataEvent e) {
}

Expand All @@ -237,7 +237,7 @@ public void intervalAdded(ListDataEvent e) {
* @param e list data event
* @deprecated Obsolete method, not used anymore.
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
public void intervalRemoved(ListDataEvent e) {
}

Expand All @@ -257,7 +257,7 @@ protected void sort(Vector<? extends File> v){
* @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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ else if (me == null)
* 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ public Component.BaselineResizeBehavior getBaselineResizeBehavior(
* All its functionality has been moved into Handler.
* @deprecated
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
public class ViewportChangeHandler implements ChangeListener
{
/**
Expand Down Expand Up @@ -534,7 +534,7 @@ protected ChangeListener createViewportChangeListener() {
* All its functionality has been moved into Handler.
* @deprecated
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
public class HSBChangeListener implements ChangeListener
{
/**
Expand Down Expand Up @@ -577,7 +577,7 @@ protected ChangeListener createHSBChangeListener() {
* All its functionality has been moved into Handler.
* @deprecated
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
public class VSBChangeListener implements ChangeListener
{
/**
Expand Down Expand Up @@ -786,7 +786,7 @@ private void updateScrollBar(PropertyChangeEvent pce, ChangeListener cl,
* All its functionality has been moved into Handler.
* @deprecated
*/
@Deprecated(since = "17")
@Deprecated(since = "17", forRemoval = true)
public class PropertyChangeHandler implements PropertyChangeListener
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ private Border createNonRolloverToggleBorder() {
* @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
Expand Down

1 comment on commit b4900b1

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.