xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lberna...@apache.org
Subject svn commit: r1612819 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/color/ColorWithAlternatives.java
Date Wed, 23 Jul 2014 12:02:08 GMT
Author: lbernardo
Date: Wed Jul 23 12:02:08 2014
New Revision: 1612819

URL: http://svn.apache.org/r1612819
Log:
FOP-2307: Weird border color inheritance (hashCode collisions); change suggested by Alexios
Giotis.

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/color/ColorWithAlternatives.java

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/color/ColorWithAlternatives.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/color/ColorWithAlternatives.java?rev=1612819&r1=1612818&r2=1612819&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/color/ColorWithAlternatives.java
(original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/color/ColorWithAlternatives.java
Wed Jul 23 12:02:08 2014
@@ -209,4 +209,11 @@ public class ColorWithAlternatives exten
         return null;
     }
 
+    public int hashCode() {
+        int hash = super.hashCode();
+        if (alternativeColors != null) {
+            hash = 37 * hash + alternativeColors.hashCode();
+        }
+        return hash;
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message