giraph-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject git commit: GIRAPH-494: Make Edge an interface (nitay)
Date Thu, 31 Jan 2013 16:34:13 GMT
Updated Branches:
  refs/heads/trunk b458bb0c7 -> af1c39b43


GIRAPH-494: Make Edge an interface (nitay)


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

Branch: refs/heads/trunk
Commit: af1c39b43a0a65821ae697e36265effb80ea8ea4
Parents: b458bb0
Author: Nitay Joffe <nitay@apache.org>
Authored: Thu Jan 31 11:34:08 2013 -0500
Committer: Nitay Joffe <nitay@apache.org>
Committed: Thu Jan 31 11:34:08 2013 -0500

----------------------------------------------------------------------
 .../java/org/apache/giraph/graph/DefaultEdge.java  |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/giraph/blob/af1c39b4/giraph-core/src/main/java/org/apache/giraph/graph/DefaultEdge.java
----------------------------------------------------------------------
diff --git a/giraph-core/src/main/java/org/apache/giraph/graph/DefaultEdge.java b/giraph-core/src/main/java/org/apache/giraph/graph/DefaultEdge.java
index 46e15f8..347abbf 100644
--- a/giraph-core/src/main/java/org/apache/giraph/graph/DefaultEdge.java
+++ b/giraph-core/src/main/java/org/apache/giraph/graph/DefaultEdge.java
@@ -21,7 +21,7 @@ package org.apache.giraph.graph;
 import org.apache.hadoop.io.Writable;
 import org.apache.hadoop.io.WritableComparable;
 
-import java.util.Objects;
+import com.google.common.base.Objects;
 
 /**
  * A complete edge, the target vertex and the edge value.  Can only be one
@@ -96,12 +96,12 @@ public class DefaultEdge<I extends WritableComparable, E extends Writable>
     }
 
     DefaultEdge edge = (DefaultEdge) o;
-    return Objects.equals(targetVertexId, edge.targetVertexId) &&
-        Objects.equals(value, edge.value);
+    return Objects.equal(targetVertexId, edge.targetVertexId) &&
+        Objects.equal(value, edge.value);
   }
 
   @Override
   public int hashCode() {
-    return Objects.hash(targetVertexId, value);
+    return Objects.hashCode(targetVertexId, value);
   }
 }


Mime
View raw message