Summary
-------
Update the java doc for the getBaselineResizeBehavior method of JSpinner and AbstractBorder to handle Null Pointer Exception tag.
Update the java doc for the getBaseline method of TitledBorder to handle Null Pointer Exception tag.
Problem
-------
The getBaselineResizeBehavior method for JSpinner currently specifies " @throws NullPointerException {@inheritDoc} " tag.
This is not correct because neither this method nor any of the ancestor class definition of this method declared exception tag in description.
The getBaseline method for TitledBorder currently specifies " @throws NullPointerException {@inheritDoc} " tag but it didn't inherit anything from ancestor class definition because the ancestor class definition of this method didn't declare exception tag for NPE.
The getBaselineResizeBehavior method for TitledBorder currently specifies " @throws NullPointerException {@inheritDoc} " but it didn't inherit anything from ancestor class definition because the exception tag was missing in ancestor class i.e. AbstractBorder.
Solution
--------
The exception tag is removed from getBaselineResizeBehavior method description for JSpinner.
The getBaseline method for TitledBorder throws NPE if component is null. Exception tag is added in method description.
The getBaselineResizeBehavior method for AbstractBorder throws NPE if Component is null. Exception tag is added in method description.
Now in TitledBorder getBaselineResizeBehavior method, the {@inheritdoc} inherits NPE tag from AbstractBorder.
Specification
-------------
javax.swing.JSpinner.DefaultEditor.getBaselineResizeBehavior()
/**
* Returns an enum indicating how the baseline of the component
* changes as the size changes.
*
- * @throws NullPointerException {@inheritDoc}
* @see javax.swing.JComponent#getBaseline(int, int)
* @since 1.6
*/
public BaselineResizeBehavior getBaselineResizeBehavior()
javax.swing.border.TitledBorder.getBaseline(Component c, int width, int height)
/**
* Returns the baseline.
*
- * @throws NullPointerException {@inheritDoc}
+ * @throws NullPointerException if {@code Component} is {@code null}
* @throws IllegalArgumentException {@inheritDoc}
* @see javax.swing.JComponent#getBaseline(int, int)
* @since 1.6
*/
public int getBaseline(Component c, int width, int height)
javax.swing.border.AbstractBorder.getBaselineResizeBehavior(Component c)
* <code>getBaseline</code> returns a value less than 0.
*
* @param c <code>Component</code> to return baseline resize behavior for
* @return an enum indicating how the baseline changes as the border is
* resized
+ * @throws NullPointerException if {@code Component} is {@code null}
* @see java.awt.Component#getBaseline(int,int)
* @see java.awt.Component#getBaselineResizeBehavior()
* @since 1.6
*/
public Component.BaselineResizeBehavior getBaselineResizeBehavior(