提交 c9da1be8 编写于 作者: M malenkov

4778988: CompoundBorder.isBorderOpaque() has incorrect documentation.

Reviewed-by: peterz, rupashka
上级 905b3ccd
...@@ -79,10 +79,13 @@ public class CompoundBorder extends AbstractBorder { ...@@ -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());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册