Skip to content

Commit ab528ce

Browse files
committed
4934362: see also refers to self
Reviewed-by: prr, serb, aivanov
1 parent 8f195ff commit ab528ce

File tree

10 files changed

+23
-23
lines changed

10 files changed

+23
-23
lines changed

src/java.desktop/share/classes/java/awt/Component.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -2265,7 +2265,8 @@ public void resize(int width, int height) {
22652265
* @param d the dimension specifying the new size
22662266
* of this component
22672267
* @throws NullPointerException if {@code d} is {@code null}
2268-
* @see #setSize
2268+
* @see #setSize(int, int)
2269+
* @see #getSize
22692270
* @see #setBounds
22702271
* @see #invalidate
22712272
* @since 1.1
@@ -8562,7 +8563,7 @@ public void addPropertyChangeListener(
85628563
*
85638564
* @see #addPropertyChangeListener
85648565
* @see #getPropertyChangeListeners
8565-
* @see #removePropertyChangeListener(java.lang.String,java.beans.PropertyChangeListener)
8566+
* @see #removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
85668567
*/
85678568
public void removePropertyChangeListener(
85688569
PropertyChangeListener listener) {
@@ -8626,7 +8627,7 @@ public PropertyChangeListener[] getPropertyChangeListeners() {
86268627
*
86278628
* @see #removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
86288629
* @see #getPropertyChangeListeners(java.lang.String)
8629-
* @see #addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
8630+
* @see #addPropertyChangeListener(java.beans.PropertyChangeListener)
86308631
*/
86318632
public void addPropertyChangeListener(
86328633
String propertyName,

src/java.desktop/share/classes/java/awt/List.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ public Color getBackground() {
16971697
* Set the background color of this object.
16981698
*
16991699
* @param c the new Color for the background
1700-
* @see #setBackground
1700+
* @see #getBackground
17011701
*/
17021702
public void setBackground(Color c) {
17031703
parent.setBackground(c);

src/java.desktop/share/classes/java/awt/MediaTracker.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ public void waitForAll() throws InterruptedException {
418418
* @return {@code true} if all images were successfully
419419
* loaded; {@code false} otherwise
420420
* @see java.awt.MediaTracker#waitForID(int)
421-
* @see java.awt.MediaTracker#waitForAll(long)
422421
* @see java.awt.MediaTracker#isErrorAny
423422
* @see java.awt.MediaTracker#isErrorID
424423
* @throws InterruptedException if any thread has
@@ -527,7 +526,7 @@ public boolean checkID(int id) {
527526
* @return {@code true} if all images have finished loading,
528527
* have been aborted, or have encountered
529528
* an error; {@code false} otherwise
530-
* @see java.awt.MediaTracker#checkID(int, boolean)
529+
* @see java.awt.MediaTracker#checkID(int)
531530
* @see java.awt.MediaTracker#checkAll()
532531
* @see java.awt.MediaTracker#isErrorAny()
533532
* @see java.awt.MediaTracker#isErrorID(int)

src/java.desktop/share/classes/javax/accessibility/AccessibleComponent.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public interface AccessibleComponent {
6767
* Sets the background color of this object.
6868
*
6969
* @param c the new color for the background
70-
* @see #setBackground
70+
* @see #getBackground
7171
*/
7272
public void setBackground(Color c);
7373

src/java.desktop/share/classes/javax/accessibility/AccessibleState.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public class AccessibleState extends AccessibleBundle {
288288
* Indicates the orientation of this object is vertical. This is usually
289289
* associated with objects such as scrollbars, sliders, and progress bars.
290290
*
291-
* @see #VERTICAL
291+
* @see #HORIZONTAL
292292
* @see AccessibleRole#SCROLL_BAR
293293
* @see AccessibleRole#SLIDER
294294
* @see AccessibleRole#PROGRESS_BAR
@@ -300,7 +300,7 @@ public class AccessibleState extends AccessibleBundle {
300300
* Indicates the orientation of this object is horizontal. This is usually
301301
* associated with objects such as scrollbars, sliders, and progress bars.
302302
*
303-
* @see #HORIZONTAL
303+
* @see #VERTICAL
304304
* @see AccessibleRole#SCROLL_BAR
305305
* @see AccessibleRole#SLIDER
306306
* @see AccessibleRole#PROGRESS_BAR

src/java.desktop/share/classes/javax/swing/JComboBox.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public class JComboBox<E> extends JComponent
155155
* This protected field is implementation specific. Do not access directly
156156
* or override. Use the accessor methods instead.
157157
*
158-
* @see #isEditable
158+
* @see #isEditable()
159159
* @see #setEditable
160160
*/
161161
protected boolean isEditable = false;

src/java.desktop/share/classes/javax/swing/JList.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ public int getFixedCellWidth() {
717717
*
718718
* @param width the width to be used for all cells in the list
719719
* @see #setPrototypeCellValue
720-
* @see #setFixedCellWidth
720+
* @see #getFixedCellWidth
721721
* @see JComponent#addPropertyChangeListener
722722
*/
723723
@BeanProperty(visualUpdate = true, description

src/java.desktop/share/classes/javax/swing/JPopupMenu.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ public String getLabel() {
542542
*
543543
* @param label a string specifying the label for the popup menu
544544
*
545-
* @see #setLabel
545+
* @see #getLabel
546546
*/
547547
@BeanProperty(description
548548
= "The label for the popup menu.")

src/java.desktop/share/classes/javax/swing/table/DefaultTableModel.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ public void setColumnIdentifiers(Object[] newIdentifiers) {
517517
*
518518
* @param columnCount the new number of columns in the model
519519
*
520-
* @see #setColumnCount
520+
* @see #setRowCount
521521
* @since 1.3
522522
*/
523523
public void setColumnCount(int columnCount) {

src/java.desktop/share/classes/javax/swing/text/View.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ public void setParent(View parent) {
349349
* returns 0.
350350
*
351351
* @return the number of views &gt;= 0
352-
* @see View#getViewCount
353352
*/
354353
public int getViewCount() {
355354
return 0;
@@ -698,7 +697,8 @@ public Shape modelToView(int p0, Position.Bias b0, int p1, Position.Bias b1, Sha
698697
* @param e the change information from the associated document
699698
* @param a the current allocation of the view
700699
* @param f the factory to use to rebuild if the view has children
701-
* @see View#insertUpdate
700+
* @see View#removeUpdate
701+
* @see View#changedUpdate
702702
*/
703703
public void insertUpdate(DocumentEvent e, Shape a, ViewFactory f) {
704704
if (getViewCount() > 0) {
@@ -739,7 +739,8 @@ public void insertUpdate(DocumentEvent e, Shape a, ViewFactory f) {
739739
* @param e the change information from the associated document
740740
* @param a the current allocation of the view
741741
* @param f the factory to use to rebuild if the view has children
742-
* @see View#removeUpdate
742+
* @see View#insertUpdate
743+
* @see View#changedUpdate
743744
*/
744745
public void removeUpdate(DocumentEvent e, Shape a, ViewFactory f) {
745746
if (getViewCount() > 0) {
@@ -780,7 +781,8 @@ public void removeUpdate(DocumentEvent e, Shape a, ViewFactory f) {
780781
* @param e the change information from the associated document
781782
* @param a the current allocation of the view
782783
* @param f the factory to use to rebuild if the view has children
783-
* @see View#changedUpdate
784+
* @see View#insertUpdate
785+
* @see View#removeUpdate
784786
*/
785787
public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) {
786788
if (getViewCount() > 0) {
@@ -802,7 +804,6 @@ public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) {
802804
* Fetches the model associated with the view.
803805
*
804806
* @return the view model, <code>null</code> if none
805-
* @see View#getDocument
806807
*/
807808
public Document getDocument() {
808809
return elem.getDocument();
@@ -813,7 +814,7 @@ public Document getDocument() {
813814
* responsible.
814815
*
815816
* @return the starting offset into the model &gt;= 0
816-
* @see View#getStartOffset
817+
* @see View#getEndOffset
817818
*/
818819
public int getStartOffset() {
819820
return elem.getStartOffset();
@@ -824,7 +825,7 @@ public int getStartOffset() {
824825
* responsible.
825826
*
826827
* @return the ending offset into the model &gt;= 0
827-
* @see View#getEndOffset
828+
* @see View#getStartOffset
828829
*/
829830
public int getEndOffset() {
830831
return elem.getEndOffset();
@@ -836,7 +837,6 @@ public int getEndOffset() {
836837
* entire portion of the element.
837838
*
838839
* @return the subject
839-
* @see View#getElement
840840
*/
841841
public Element getElement() {
842842
return elem;
@@ -1339,7 +1339,7 @@ protected void updateLayout(DocumentEvent.ElementChange ec,
13391339
* @return the bounding box of the given position is returned
13401340
* @throws BadLocationException if the given position does
13411341
* not represent a valid location in the associated document
1342-
* @see View#modelToView
1342+
* @see View#viewToModel
13431343
* @deprecated
13441344
*/
13451345
@Deprecated
@@ -1357,7 +1357,7 @@ public Shape modelToView(int pos, Shape a) throws BadLocationException {
13571357
* @param a the allocated region in which to render
13581358
* @return the location within the model that best represents the
13591359
* given point in the view &gt;= 0
1360-
* @see View#viewToModel
1360+
* @see View#modelToView
13611361
* @deprecated
13621362
*/
13631363
@Deprecated

0 commit comments

Comments
 (0)