Skip to content
Permalink
Browse files
8253322: Update the specification in the newly added constructors
Reviewed-by: psadhukhan, prr
  • Loading branch information
mrserb committed Sep 24, 2020
1 parent 24a4248 commit 8239b67d4f1dcbd063a78286a55aafc7c80aeb4f
Showing with 152 additions and 137 deletions.
  1. +2 −2 src/java.desktop/share/classes/java/applet/Applet.java
  2. +2 −2 src/java.desktop/share/classes/java/awt/Button.java
  3. +2 −2 src/java.desktop/share/classes/java/awt/Canvas.java
  4. +2 −2 src/java.desktop/share/classes/java/awt/CheckboxMenuItem.java
  5. +2 −2 src/java.desktop/share/classes/java/awt/Component.java
  6. +3 −3 src/java.desktop/share/classes/java/awt/Container.java
  7. +2 −2 src/java.desktop/share/classes/java/awt/Dialog.java
  8. +2 −2 src/java.desktop/share/classes/java/awt/Frame.java
  9. +2 −2 src/java.desktop/share/classes/java/awt/Menu.java
  10. +2 −2 src/java.desktop/share/classes/java/awt/MenuBar.java
  11. +2 −2 src/java.desktop/share/classes/java/awt/MenuItem.java
  12. +2 −2 src/java.desktop/share/classes/java/awt/Panel.java
  13. +2 −2 src/java.desktop/share/classes/java/awt/PopupMenu.java
  14. +2 −2 src/java.desktop/share/classes/java/awt/ScrollPane.java
  15. +2 −2 src/java.desktop/share/classes/java/awt/Scrollbar.java
  16. +2 −2 src/java.desktop/share/classes/java/awt/TextArea.java
  17. +2 −2 src/java.desktop/share/classes/java/awt/TextField.java
  18. +1 −1 src/java.desktop/share/classes/java/awt/Window.java
  19. +1 −1 src/java.desktop/share/classes/javax/sound/midi/spi/MidiDeviceProvider.java
  20. +1 −1 src/java.desktop/share/classes/javax/sound/midi/spi/MidiFileReader.java
  21. +1 −1 src/java.desktop/share/classes/javax/sound/midi/spi/MidiFileWriter.java
  22. +1 −1 src/java.desktop/share/classes/javax/sound/midi/spi/SoundbankReader.java
  23. +1 −1 src/java.desktop/share/classes/javax/sound/sampled/spi/AudioFileReader.java
  24. +1 −1 src/java.desktop/share/classes/javax/sound/sampled/spi/AudioFileWriter.java
  25. +1 −1 src/java.desktop/share/classes/javax/sound/sampled/spi/FormatConversionProvider.java
  26. +1 −1 src/java.desktop/share/classes/javax/sound/sampled/spi/MixerProvider.java
  27. +5 −3 src/java.desktop/share/classes/javax/swing/Box.java
  28. +3 −2 src/java.desktop/share/classes/javax/swing/CellRendererPane.java
  29. +2 −2 src/java.desktop/share/classes/javax/swing/DefaultCellEditor.java
  30. +2 −2 src/java.desktop/share/classes/javax/swing/ImageIcon.java
  31. +3 −2 src/java.desktop/share/classes/javax/swing/JApplet.java
  32. +2 −2 src/java.desktop/share/classes/javax/swing/JButton.java
  33. +2 −2 src/java.desktop/share/classes/javax/swing/JCheckBox.java
  34. +3 −2 src/java.desktop/share/classes/javax/swing/JCheckBoxMenuItem.java
  35. +2 −2 src/java.desktop/share/classes/javax/swing/JColorChooser.java
  36. +4 −3 src/java.desktop/share/classes/javax/swing/JComponent.java
  37. +2 −2 src/java.desktop/share/classes/javax/swing/JDesktopPane.java
  38. +2 −2 src/java.desktop/share/classes/javax/swing/JDialog.java
  39. +2 −2 src/java.desktop/share/classes/javax/swing/JEditorPane.java
  40. +1 −1 src/java.desktop/share/classes/javax/swing/JFileChooser.java
  41. +2 −2 src/java.desktop/share/classes/javax/swing/JFrame.java
  42. +3 −3 src/java.desktop/share/classes/javax/swing/JInternalFrame.java
  43. +2 −2 src/java.desktop/share/classes/javax/swing/JLabel.java
  44. +2 −2 src/java.desktop/share/classes/javax/swing/JLayeredPane.java
  45. +2 −2 src/java.desktop/share/classes/javax/swing/JMenu.java
  46. +2 −2 src/java.desktop/share/classes/javax/swing/JMenuBar.java
  47. +2 −2 src/java.desktop/share/classes/javax/swing/JOptionPane.java
  48. +3 −2 src/java.desktop/share/classes/javax/swing/JPanel.java
  49. +2 −2 src/java.desktop/share/classes/javax/swing/JPasswordField.java
  50. +2 −2 src/java.desktop/share/classes/javax/swing/JProgressBar.java
  51. +2 −2 src/java.desktop/share/classes/javax/swing/JRadioButton.java
  52. +3 −2 src/java.desktop/share/classes/javax/swing/JRadioButtonMenuItem.java
  53. +4 −3 src/java.desktop/share/classes/javax/swing/JRootPane.java
  54. +2 −2 src/java.desktop/share/classes/javax/swing/JScrollBar.java
  55. +2 −2 src/java.desktop/share/classes/javax/swing/JSeparator.java
  56. +3 −2 src/java.desktop/share/classes/javax/swing/JSplitPane.java
  57. +3 −2 src/java.desktop/share/classes/javax/swing/JTabbedPane.java
  58. +2 −2 src/java.desktop/share/classes/javax/swing/JTextArea.java
  59. +2 −2 src/java.desktop/share/classes/javax/swing/JTextField.java
  60. +2 −2 src/java.desktop/share/classes/javax/swing/JToolBar.java
  61. +2 −2 src/java.desktop/share/classes/javax/swing/JToolTip.java
  62. +8 −7 src/java.desktop/share/classes/javax/swing/JTree.java
  63. +3 −3 src/java.desktop/share/classes/javax/swing/JViewport.java
  64. +2 −2 src/java.desktop/share/classes/javax/swing/JWindow.java
  65. +7 −4 src/java.desktop/share/classes/javax/swing/ToolTipManager.java
  66. +2 −2 src/java.desktop/share/classes/javax/swing/table/JTableHeader.java
  67. +2 −2 src/java.desktop/share/classes/javax/swing/text/html/FormView.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -579,7 +579,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = 8127374778187708896L;

/**
* Constructs an {@code AccessibleApplet}
* Constructs an {@code AccessibleApplet}.
*/
protected AccessibleApplet() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -538,7 +538,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = -5932203980244017102L;

/**
* Constructs an {@code AccessibleAWTButton}
* Constructs an {@code AccessibleAWTButton}.
*/
protected AccessibleAWTButton() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -241,7 +241,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = -6325592262103146699L;

/**
* Constructs an {@code AccessibleAWTCanvas}
* Constructs an {@code AccessibleAWTCanvas}.
*/
protected AccessibleAWTCanvas() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -537,7 +537,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = -1122642964303476L;

/**
* Constructs an {@code AccessibleAWTCheckboxMenuItem}
* Constructs an {@code AccessibleAWTCheckboxMenuItem}.
*/
protected AccessibleAWTCheckboxMenuItem() {}

@@ -9342,7 +9342,7 @@ protected AccessibleAWTComponent() {
private static final long serialVersionUID = -1009684107426231869L;

/**
* Constructs an {@code AccessibleAWTComponentHandler}
* Constructs an {@code AccessibleAWTComponentHandler}.
*/
protected AccessibleAWTComponentHandler() {}

@@ -9379,7 +9379,7 @@ public void componentResized(ComponentEvent e) {
private static final long serialVersionUID = 3150908257351582233L;

/**
* Constructs an {@code AccessibleAWTFocusHandler}
* Constructs an {@code AccessibleAWTFocusHandler}.
*/
protected AccessibleAWTFocusHandler() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -3807,7 +3807,7 @@ private void readObject(ObjectInputStream s)
private static final long serialVersionUID = 5081320404842566097L;

/**
* Constructs an {@code AccessibleAWTContainer}
* Constructs an {@code AccessibleAWTContainer}.
*/
protected AccessibleAWTContainer() {}

@@ -3869,7 +3869,7 @@ public Accessible getAccessibleAt(Point p) {
private static final long serialVersionUID = -480855353991814677L;

/**
* Constructs an {@code AccessibleContainerHandler}
* Constructs an {@code AccessibleContainerHandler}.
*/
protected AccessibleContainerHandler() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -1659,7 +1659,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = 4837230331833941201L;

/**
* Constructs an {@code AccessibleAWTDialog}
* Constructs an {@code AccessibleAWTDialog}.
*/
protected AccessibleAWTDialog() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -1298,7 +1298,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = -6172960752956030250L;

/**
* Constructs an {@code AccessibleAWTFrame}
* Constructs an {@code AccessibleAWTFrame}.
*/
protected AccessibleAWTFrame() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -625,7 +625,7 @@ int getAccessibleChildIndex(MenuComponent child) {
private static final long serialVersionUID = 5228160894980069094L;

/**
* Constructs an {@code AccessibleAWTMenu}
* Constructs an {@code AccessibleAWTMenu}.
*/
protected AccessibleAWTMenu() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -512,7 +512,7 @@ int getAccessibleChildIndex(MenuComponent child) {
private static final long serialVersionUID = -8577604491830083815L;

/**
* Constructs an {@code AccessibleAWTMenuBar}
* Constructs an {@code AccessibleAWTMenuBar}.
*/
protected AccessibleAWTMenuBar() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -824,7 +824,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = -217847831945965825L;

/**
* Constructs an {@code AccessibleAWTMenuItem}
* Constructs an {@code AccessibleAWTMenuItem}.
*/
protected AccessibleAWTMenuItem() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -120,7 +120,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = -6409552226660031050L;

/**
* Constructs an {@code AccessibleAWTPanel}
* Constructs an {@code AccessibleAWTPanel}.
*/
protected AccessibleAWTPanel() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -229,7 +229,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = -4282044795947239955L;

/**
* Constructs an {@code AccessibleAWTPopupMenu}
* Constructs an {@code AccessibleAWTPopupMenu}.
*/
protected AccessibleAWTPopupMenu() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -792,7 +792,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = 6100703663886637L;

/**
* Constructs an {@code AccessibleAWTScrollPane}
* Constructs an {@code AccessibleAWTScrollPane}.
*/
protected AccessibleAWTScrollPane() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -1263,7 +1263,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = -344337268523697807L;

/**
* Constructs an {@code AccessibleAWTScrollBar}
* Constructs an {@code AccessibleAWTScrollBar}.
*/
protected AccessibleAWTScrollBar() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -720,7 +720,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = 3472827823632144419L;

/**
* Constructs an {@code AccessibleAWTTextArea}
* Constructs an {@code AccessibleAWTTextArea}.
*/
protected AccessibleAWTTextArea() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -789,7 +789,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = 6219164359235943158L;

/**
* Constructs an {@code AccessibleAWTTextField}
* Constructs an {@code AccessibleAWTTextField}.
*/
protected AccessibleAWTTextField() {}

@@ -3164,7 +3164,7 @@ public AccessibleContext getAccessibleContext() {
private static final long serialVersionUID = 4215068635060671780L;

/**
* Constructs an {@code AccessibleAWTWindow}
* Constructs an {@code AccessibleAWTWindow}.
*/
protected AccessibleAWTWindow() {}

@@ -39,7 +39,7 @@
public abstract class MidiDeviceProvider {

/**
* Constructs a {@code MidiDeviceProvider}.
* Constructor for subclasses to call.
*/
protected MidiDeviceProvider() {}

@@ -46,7 +46,7 @@
public abstract class MidiFileReader {

/**
* Constructs a {@code MidiFileReader}.
* Constructor for subclasses to call.
*/
protected MidiFileReader() {}

@@ -43,7 +43,7 @@
public abstract class MidiFileWriter {

/**
* Constructs a {@code MidiFileWriter}.
* Constructor for subclasses to call.
*/
protected MidiFileWriter() {}

@@ -45,7 +45,7 @@
public abstract class SoundbankReader {

/**
* Constructs a {@code SoundbankReader}.
* Constructor for subclasses to call.
*/
protected SoundbankReader() {}

@@ -45,7 +45,7 @@
public abstract class AudioFileReader {

/**
* Constructs an {@code AudioFileReader}.
* Constructor for subclasses to call.
*/
protected AudioFileReader() {}

@@ -46,7 +46,7 @@
public abstract class AudioFileWriter {

/**
* Constructs an {@code AudioFileWriter}.
* Constructor for subclasses to call.
*/
protected AudioFileWriter() {}

@@ -52,7 +52,7 @@
public abstract class FormatConversionProvider {

/**
* Constructs a {@code FormatConversionProvider}.
* Constructor for subclasses to call.
*/
protected FormatConversionProvider() {}

@@ -40,7 +40,7 @@
public abstract class MixerProvider {

/**
* Constructs a {@code MixerProvider}.
* Constructor for subclasses to call.
*/
protected MixerProvider() {}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -384,8 +384,9 @@ public AccessibleContext getAccessibleContext() {
*/
@SuppressWarnings("serial")
protected class AccessibleBoxFiller extends AccessibleAWTComponent {

/**
* Constructor for subclasses to call.
* Constructs an {@code AccessibleBoxFiller}.
*/
protected AccessibleBoxFiller() {}

@@ -431,8 +432,9 @@ public AccessibleContext getAccessibleContext() {
*/
@SuppressWarnings("serial")
protected class AccessibleBox extends AccessibleAWTContainer {

/**
* Constructor for subclasses to call.
* Constructs an {@code AccessibleBox}.
*/
protected AccessibleBox() {}

1 comment on commit 8239b67

@bridgekeeper

This comment has been minimized.

Copy link

@bridgekeeper bridgekeeper bot commented on 8239b67 Sep 24, 2020

Please sign in to comment.