Updated Branches:
  refs/heads/master 1df6792e9 -> bf6a0eb37

SAMZA-118: Change Partition hashcode to just the partition number.


Project: http://git-wip-us.apache.org/repos/asf/incubator-samza/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-samza/commit/bf6a0eb3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-samza/tree/bf6a0eb3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-samza/diff/bf6a0eb3

Branch: refs/heads/master
Commit: bf6a0eb37e3e5f6d7e657579e0a2bffa0e00d1db
Parents: 1df6792
Author: Jakob Glen Homan <[email protected]>
Authored: Wed Jan 8 13:39:05 2014 -0800
Committer: Jakob Glen Homan <[email protected]>
Committed: Wed Jan 8 13:39:05 2014 -0800

----------------------------------------------------------------------
 samza-api/src/main/java/org/apache/samza/Partition.java | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-samza/blob/bf6a0eb3/samza-api/src/main/java/org/apache/samza/Partition.java
----------------------------------------------------------------------
diff --git a/samza-api/src/main/java/org/apache/samza/Partition.java 
b/samza-api/src/main/java/org/apache/samza/Partition.java
index d83a097..51b7e38 100644
--- a/samza-api/src/main/java/org/apache/samza/Partition.java
+++ b/samza-api/src/main/java/org/apache/samza/Partition.java
@@ -32,10 +32,7 @@ public class Partition {
 
   @Override
   public int hashCode() {
-    final int prime = 31;
-    int result = 1;
-    result = prime * result + partition;
-    return result;
+    return partition;
   }
 
   @Override

Reply via email to