8252195: AWT Accessibility API nested classes rely on default constructors
Reviewed-by: serb
This commit is contained in:
parent
426c9049ce
commit
93a2018d1e
@ -578,6 +578,11 @@ public class Applet extends Panel {
|
||||
*/
|
||||
private static final long serialVersionUID = 8127374778187708896L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleApplet}
|
||||
*/
|
||||
protected AccessibleApplet() {}
|
||||
|
||||
/**
|
||||
* Get the role of this object.
|
||||
*
|
||||
|
@ -537,6 +537,11 @@ public class Button extends Component implements Accessible {
|
||||
*/
|
||||
private static final long serialVersionUID = -5932203980244017102L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTButton}
|
||||
*/
|
||||
protected AccessibleAWTButton() {}
|
||||
|
||||
/**
|
||||
* Get the accessible name of this object.
|
||||
*
|
||||
|
@ -240,6 +240,11 @@ public class Canvas extends Component implements Accessible {
|
||||
{
|
||||
private static final long serialVersionUID = -6325592262103146699L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTCanvas}
|
||||
*/
|
||||
protected AccessibleAWTCanvas() {}
|
||||
|
||||
/**
|
||||
* Get the role of this object.
|
||||
*
|
||||
|
@ -536,6 +536,11 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access
|
||||
*/
|
||||
private static final long serialVersionUID = -1122642964303476L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTCheckboxMenuItem}
|
||||
*/
|
||||
protected AccessibleAWTCheckboxMenuItem() {}
|
||||
|
||||
/**
|
||||
* Get the AccessibleAction associated with this object. In the
|
||||
* implementation of the Java Accessibility API for this class,
|
||||
|
@ -9341,6 +9341,11 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
protected class AccessibleAWTComponentHandler implements ComponentListener, Serializable {
|
||||
private static final long serialVersionUID = -1009684107426231869L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTComponentHandler}
|
||||
*/
|
||||
protected AccessibleAWTComponentHandler() {}
|
||||
|
||||
public void componentHidden(ComponentEvent e) {
|
||||
if (accessibleContext != null) {
|
||||
accessibleContext.firePropertyChange(
|
||||
@ -9373,6 +9378,11 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
protected class AccessibleAWTFocusHandler implements FocusListener, Serializable {
|
||||
private static final long serialVersionUID = 3150908257351582233L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTFocusHandler}
|
||||
*/
|
||||
protected AccessibleAWTFocusHandler() {}
|
||||
|
||||
public void focusGained(FocusEvent event) {
|
||||
if (accessibleContext != null) {
|
||||
accessibleContext.firePropertyChange(
|
||||
|
@ -3806,6 +3806,11 @@ public class Container extends Component {
|
||||
*/
|
||||
private static final long serialVersionUID = 5081320404842566097L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTContainer}
|
||||
*/
|
||||
protected AccessibleAWTContainer() {}
|
||||
|
||||
/**
|
||||
* Returns the number of accessible children in the object. If all
|
||||
* of the children of this object implement {@code Accessible},
|
||||
@ -3863,6 +3868,11 @@ public class Container extends Component {
|
||||
implements ContainerListener, Serializable {
|
||||
private static final long serialVersionUID = -480855353991814677L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleContainerHandler}
|
||||
*/
|
||||
protected AccessibleContainerHandler() {}
|
||||
|
||||
public void componentAdded(ContainerEvent e) {
|
||||
Component c = e.getChild();
|
||||
if (c != null && c instanceof Accessible) {
|
||||
|
@ -1658,6 +1658,11 @@ public class Dialog extends Window {
|
||||
*/
|
||||
private static final long serialVersionUID = 4837230331833941201L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTDialog}
|
||||
*/
|
||||
protected AccessibleAWTDialog() {}
|
||||
|
||||
/**
|
||||
* Get the role of this object.
|
||||
*
|
||||
|
@ -1297,6 +1297,11 @@ public class Frame extends Window implements MenuContainer {
|
||||
*/
|
||||
private static final long serialVersionUID = -6172960752956030250L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTFrame}
|
||||
*/
|
||||
protected AccessibleAWTFrame() {}
|
||||
|
||||
/**
|
||||
* Get the role of this object.
|
||||
*
|
||||
|
@ -624,6 +624,11 @@ public class Menu extends MenuItem implements MenuContainer, Accessible {
|
||||
*/
|
||||
private static final long serialVersionUID = 5228160894980069094L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTMenu}
|
||||
*/
|
||||
protected AccessibleAWTMenu() {}
|
||||
|
||||
/**
|
||||
* Get the role of this object.
|
||||
*
|
||||
|
@ -511,6 +511,11 @@ public class MenuBar extends MenuComponent implements MenuContainer, Accessible
|
||||
*/
|
||||
private static final long serialVersionUID = -8577604491830083815L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTMenuBar}
|
||||
*/
|
||||
protected AccessibleAWTMenuBar() {}
|
||||
|
||||
/**
|
||||
* Get the role of this object.
|
||||
*
|
||||
|
@ -823,6 +823,11 @@ public class MenuItem extends MenuComponent implements Accessible {
|
||||
*/
|
||||
private static final long serialVersionUID = -217847831945965825L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTMenuItem}
|
||||
*/
|
||||
protected AccessibleAWTMenuItem() {}
|
||||
|
||||
/**
|
||||
* Get the accessible name of this object.
|
||||
*
|
||||
|
@ -119,6 +119,11 @@ public class Panel extends Container implements Accessible {
|
||||
|
||||
private static final long serialVersionUID = -6409552226660031050L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTPanel}
|
||||
*/
|
||||
protected AccessibleAWTPanel() {}
|
||||
|
||||
/**
|
||||
* Get the role of this object.
|
||||
*
|
||||
|
@ -228,6 +228,11 @@ public class PopupMenu extends Menu {
|
||||
*/
|
||||
private static final long serialVersionUID = -4282044795947239955L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTPopupMenu}
|
||||
*/
|
||||
protected AccessibleAWTPopupMenu() {}
|
||||
|
||||
/**
|
||||
* Get the role of this object.
|
||||
*
|
||||
|
@ -791,6 +791,11 @@ public class ScrollPane extends Container implements Accessible {
|
||||
*/
|
||||
private static final long serialVersionUID = 6100703663886637L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTScrollPane}
|
||||
*/
|
||||
protected AccessibleAWTScrollPane() {}
|
||||
|
||||
/**
|
||||
* Get the role of this object.
|
||||
*
|
||||
|
@ -1262,6 +1262,11 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
*/
|
||||
private static final long serialVersionUID = -344337268523697807L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTScrollBar}
|
||||
*/
|
||||
protected AccessibleAWTScrollBar() {}
|
||||
|
||||
/**
|
||||
* Get the state set of this object.
|
||||
*
|
||||
|
@ -719,6 +719,11 @@ public class TextArea extends TextComponent {
|
||||
*/
|
||||
private static final long serialVersionUID = 3472827823632144419L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTTextArea}
|
||||
*/
|
||||
protected AccessibleAWTTextArea() {}
|
||||
|
||||
/**
|
||||
* Gets the state set of this object.
|
||||
*
|
||||
|
@ -788,6 +788,11 @@ public class TextField extends TextComponent {
|
||||
*/
|
||||
private static final long serialVersionUID = 6219164359235943158L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTTextField}
|
||||
*/
|
||||
protected AccessibleAWTTextField() {}
|
||||
|
||||
/**
|
||||
* Gets the state set of this object.
|
||||
*
|
||||
|
@ -3163,6 +3163,11 @@ public class Window extends Container implements Accessible {
|
||||
*/
|
||||
private static final long serialVersionUID = 4215068635060671780L;
|
||||
|
||||
/**
|
||||
* Constructs an {@code AccessibleAWTWindow}
|
||||
*/
|
||||
protected AccessibleAWTWindow() {}
|
||||
|
||||
/**
|
||||
* Get the role of this object.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user