Return-Path: Delivered-To: apmail-xmlgraphics-commits-archive@www.apache.org Received: (qmail 53566 invoked from network); 13 Dec 2010 12:43:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Dec 2010 12:43:47 -0000 Received: (qmail 18246 invoked by uid 500); 13 Dec 2010 12:43:46 -0000 Mailing-List: contact commits-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@xmlgraphics.apache.org Delivered-To: mailing list commits@xmlgraphics.apache.org Received: (qmail 18238 invoked by uid 99); 13 Dec 2010 12:43:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 12:43:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 12:43:44 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F072823889B1; Mon, 13 Dec 2010 12:43:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1045096 - /xmlgraphics/commons/branches/Temp_Color/src/java/org/apache/xmlgraphics/java2d/color/ColorWithAlternatives.java Date: Mon, 13 Dec 2010 12:43:23 -0000 To: commits@xmlgraphics.apache.org From: jeremias@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101213124323.F072823889B1@eris.apache.org> Author: jeremias Date: Mon Dec 13 12:43:23 2010 New Revision: 1045096 URL: http://svn.apache.org/viewvc?rev=1045096&view=rev Log: Javadoc update. Modified: xmlgraphics/commons/branches/Temp_Color/src/java/org/apache/xmlgraphics/java2d/color/ColorWithAlternatives.java Modified: xmlgraphics/commons/branches/Temp_Color/src/java/org/apache/xmlgraphics/java2d/color/ColorWithAlternatives.java URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Color/src/java/org/apache/xmlgraphics/java2d/color/ColorWithAlternatives.java?rev=1045096&r1=1045095&r2=1045096&view=diff ============================================================================== --- xmlgraphics/commons/branches/Temp_Color/src/java/org/apache/xmlgraphics/java2d/color/ColorWithAlternatives.java (original) +++ xmlgraphics/commons/branches/Temp_Color/src/java/org/apache/xmlgraphics/java2d/color/ColorWithAlternatives.java Mon Dec 13 12:43:23 2010 @@ -27,11 +27,14 @@ import java.awt.color.ColorSpace; * The alternative colors shall be the ones that are preferred if an output format supports them. * This is normally used for passing device-specific colors through to the output format. *

- * An additional benefit of this class is a better {@link ColorWithAlternatives#equals(Object)} - * method than the one from {@link Color} which only takes the sRGB values into account. - *

* This class only adds a single reference to a color array which should not increase memory * consumption by much if no alternative colors are specified. + *

+ * Important: Due to a flaw in {@link Color#equals(Object)}, the equals() + * method should not be used to compare two colors, especially when used to update the current + * color for some output format. {@link Color} only takes the sRGB values into account but not + * more the advanced facets of this class. Use {@link ColorUtil#isSameColor(Color, Color)} for + * such a check. */ public class ColorWithAlternatives extends Color { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: commits-help@xmlgraphics.apache.org