changeset 618:ef591cd4c463

4778988: CompoundBorder.isBorderOpaque() has incorrect documentation. Reviewed-by: peterz, rupashka
author malenkov
date Thu, 24 Jul 2008 14:51:13 +0400
parents e4d87f3c8858
children b334982cdefe
files src/share/classes/javax/swing/border/CompoundBorder.java
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/border/CompoundBorder.java	Thu Jul 24 14:34:02 2008 +0400
+++ b/src/share/classes/javax/swing/border/CompoundBorder.java	Thu Jul 24 14:51:13 2008 +0400
@@ -79,10 +79,13 @@
     }
 
     /**
-     * Returns whether or not this compound border is opaque.
-     * Returns true if both the inside and outside borders are
-     * non-null and opaque; returns false otherwise.
+     * Returns whether or not the compound border is opaque.
+     *
+     * @return {@code true} if the inside and outside borders
+     *         are each either {@code null} or opaque;
+     *         or {@code false} otherwise
      */
+    @Override
     public boolean isBorderOpaque() {
         return (outsideBorder == null || outsideBorder.isBorderOpaque()) &&
                (insideBorder == null || insideBorder.isBorderOpaque());