Permalink
Browse files

GIRAPH-176. BasicRPCCommunications has unnecessary cast of Vertex. Co…

…ntributed by Devaraj K.

git-svn-id: https://svn.apache.org/repos/asf/incubator/giraph/trunk@1327348 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
jghoman committed Apr 18, 2012
1 parent 6f8296d commit 0e78d17ac0b2717f0afbb8799b16f255231eaea9
Showing with 4 additions and 1 deletion.
  1. +3 −0 CHANGELOG
  2. +1 −1 src/main/java/org/apache/giraph/comm/BasicRPCCommunications.java
View
@@ -2,6 +2,9 @@ Giraph Change Log
Release 0.2.0 - unreleased
+ GIRAPH-176. BasicRPCCommunications has unnecessary cast of Vertex.
+ (Devaraj K via jghoman)
+
GIRAPH-175. Replace manual array copy to utility method call.
(Devaraj K via jghoman)
@@ -1256,7 +1256,7 @@ public void prepareSuperstep() {
}
if (vertex != null) {
((MutableVertex<I, V, E, M>) vertex).setVertexId(vertexIndex);
- partition.putVertex((BasicVertex<I, V, E, M>) vertex);
+ partition.putVertex(vertex);
} else if (originalVertex != null) {
partition.removeVertex(originalVertex.getVertexId());
}

0 comments on commit 0e78d17

Please sign in to comment.