Updated Branches: refs/heads/trunk 10ad3c025 -> b458bb0c7
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/b458bb0c Tree: http://git-wip-us.apache.org/repos/asf/giraph/tree/b458bb0c Diff: http://git-wip-us.apache.org/repos/asf/giraph/diff/b458bb0c Branch: refs/heads/trunk Commit: b458bb0c707603dc8bdf28fcd999a3a21cf9b281 Parents: 10ad3c0 Author: Nitay Joffe <[email protected]> Authored: Thu Jan 31 11:31:06 2013 -0500 Committer: Nitay Joffe <[email protected]> Committed: Thu Jan 31 11:31:06 2013 -0500 ---------------------------------------------------------------------- .../java/org/apache/giraph/graph/EdgeNoValue.java | 6 +++--- pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/giraph/blob/b458bb0c/giraph-core/src/main/java/org/apache/giraph/graph/EdgeNoValue.java ---------------------------------------------------------------------- diff --git a/giraph-core/src/main/java/org/apache/giraph/graph/EdgeNoValue.java b/giraph-core/src/main/java/org/apache/giraph/graph/EdgeNoValue.java index 75a35aa..765e602 100644 --- a/giraph-core/src/main/java/org/apache/giraph/graph/EdgeNoValue.java +++ b/giraph-core/src/main/java/org/apache/giraph/graph/EdgeNoValue.java @@ -21,7 +21,7 @@ package org.apache.giraph.graph; import org.apache.hadoop.io.NullWritable; import org.apache.hadoop.io.WritableComparable; -import java.util.Objects; +import com.google.common.base.Objects; /** * An edge that has no value. @@ -76,12 +76,12 @@ public class EdgeNoValue<I extends WritableComparable> } EdgeNoValue edge = (EdgeNoValue) o; - return Objects.equals(targetVertexId, edge.targetVertexId); + return Objects.equal(targetVertexId, edge.targetVertexId); } @Override public int hashCode() { - return Objects.hash(targetVertexId); + return Objects.hashCode(targetVertexId); } @Override http://git-wip-us.apache.org/repos/asf/giraph/blob/b458bb0c/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 19e7ec8..4721ced 100644 --- a/pom.xml +++ b/pom.xml @@ -300,7 +300,7 @@ under the License. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> - <version>2.3.2</version> + <version>3.0</version> <configuration> <source>1.6</source> <target>1.6</target>
