Skip to content

Commit 5652030

Browse files
kumarabhi006prsadhuk
authored andcommitted
8292376: A few Swing methods use inheritDoc on exceptions which are not inherited
Reviewed-by: prr, tr
1 parent 03f287d commit 5652030

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -935,7 +935,6 @@ public int getBaseline(int width, int height) {
935935
* Returns an enum indicating how the baseline of the component
936936
* changes as the size changes.
937937
*
938-
* @throws NullPointerException {@inheritDoc}
939938
* @see javax.swing.JComponent#getBaseline(int, int)
940939
* @since 1.6
941940
*/

src/java.desktop/share/classes/javax/swing/border/AbstractBorder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -181,6 +181,7 @@ public int getBaseline(Component c, int width, int height) {
181181
* @param c <code>Component</code> to return baseline resize behavior for
182182
* @return an enum indicating how the baseline changes as the border is
183183
* resized
184+
* @throws NullPointerException if {@code Component} is {@code null}
184185
* @see java.awt.Component#getBaseline(int,int)
185186
* @see java.awt.Component#getBaselineResizeBehavior()
186187
* @since 1.6

src/java.desktop/share/classes/javax/swing/border/TitledBorder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -587,7 +587,7 @@ else if (minSize.width < size.width) {
587587
/**
588588
* Returns the baseline.
589589
*
590-
* @throws NullPointerException {@inheritDoc}
590+
* @throws NullPointerException if {@code Component} is {@code null}
591591
* @throws IllegalArgumentException {@inheritDoc}
592592
* @see javax.swing.JComponent#getBaseline(int, int)
593593
* @since 1.6

0 commit comments

Comments
 (0)