mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
4778988: CompoundBorder.isBorderOpaque() has incorrect documentation
Reviewed-by: peterz, rupashka
This commit is contained in:
parent
c3732ffc5d
commit
02a6cd7914
1 changed files with 6 additions and 3 deletions
|
@ -79,10 +79,13 @@ public class CompoundBorder extends AbstractBorder {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether or not this compound border is opaque.
|
* Returns whether or not the compound border is opaque.
|
||||||
* Returns true if both the inside and outside borders are
|
*
|
||||||
* non-null and opaque; returns false otherwise.
|
* @return {@code true} if the inside and outside borders
|
||||||
|
* are each either {@code null} or opaque;
|
||||||
|
* or {@code false} otherwise
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isBorderOpaque() {
|
public boolean isBorderOpaque() {
|
||||||
return (outsideBorder == null || outsideBorder.isBorderOpaque()) &&
|
return (outsideBorder == null || outsideBorder.isBorderOpaque()) &&
|
||||||
(insideBorder == null || insideBorder.isBorderOpaque());
|
(insideBorder == null || insideBorder.isBorderOpaque());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue