abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1199460 - /abdera/abdera2/common/src/main/java/org/apache/abdera2/common/lang/SubtagSet.java
Date Tue, 08 Nov 2011 21:14:52 GMT
Author: jmsnell
Date: Tue Nov  8 21:14:52 2011
New Revision: 1199460

URL: http://svn.apache.org/viewvc?rev=1199460&view=rev
Log: (empty)

Modified:
    abdera/abdera2/common/src/main/java/org/apache/abdera2/common/lang/SubtagSet.java

Modified: abdera/abdera2/common/src/main/java/org/apache/abdera2/common/lang/SubtagSet.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/common/src/main/java/org/apache/abdera2/common/lang/SubtagSet.java?rev=1199460&r1=1199459&r2=1199460&view=diff
==============================================================================
--- abdera/abdera2/common/src/main/java/org/apache/abdera2/common/lang/SubtagSet.java (original)
+++ abdera/abdera2/common/src/main/java/org/apache/abdera2/common/lang/SubtagSet.java Tue
Nov  8 21:14:52 2011
@@ -125,7 +125,11 @@ public abstract class SubtagSet 
     }
 
     public int hashCode() {
-      return MoreFunctions.genHashCode(1, this);
+        final int prime = 31;
+        int result = 1;
+        for (Subtag tag : this)
+            result = prime * result + tag.hashCode();
+        return result;
     }
 
     public boolean equals(Object obj) {



Mime
View raw message