8292376: A few Swing methods use inheritDoc on exceptions which are not inherited

Reviewed-by: prr, tr
This commit is contained in:
Abhishek Kumar 2022-09-22 07:38:14 +00:00 committed by Prasanta Sadhukhan
parent 03f287d4ad
commit 5652030f16
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2022, 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
@ -935,7 +935,6 @@ public class JSpinner extends JComponent implements Accessible
* 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
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2022, 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
@ -181,6 +181,7 @@ public abstract class AbstractBorder implements Border, Serializable
* @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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2022, 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
@ -587,7 +587,7 @@ public class TitledBorder extends AbstractBorder
/**
* 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