Author: jghoman
Date: Wed Apr 18 01:09:41 2012
New Revision: 1327348

URL: http://svn.apache.org/viewvc?rev=1327348&view=rev
Log:
GIRAPH-176. BasicRPCCommunications has unnecessary cast of Vertex. Contributed 
by Devaraj K.

Modified:
    incubator/giraph/trunk/CHANGELOG
    
incubator/giraph/trunk/src/main/java/org/apache/giraph/comm/BasicRPCCommunications.java

Modified: incubator/giraph/trunk/CHANGELOG
URL: 
http://svn.apache.org/viewvc/incubator/giraph/trunk/CHANGELOG?rev=1327348&r1=1327347&r2=1327348&view=diff
==============================================================================
--- incubator/giraph/trunk/CHANGELOG (original)
+++ incubator/giraph/trunk/CHANGELOG Wed Apr 18 01:09:41 2012
@@ -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)
 

Modified: 
incubator/giraph/trunk/src/main/java/org/apache/giraph/comm/BasicRPCCommunications.java
URL: 
http://svn.apache.org/viewvc/incubator/giraph/trunk/src/main/java/org/apache/giraph/comm/BasicRPCCommunications.java?rev=1327348&r1=1327347&r2=1327348&view=diff
==============================================================================
--- 
incubator/giraph/trunk/src/main/java/org/apache/giraph/comm/BasicRPCCommunications.java
 (original)
+++ 
incubator/giraph/trunk/src/main/java/org/apache/giraph/comm/BasicRPCCommunications.java
 Wed Apr 18 01:09:41 2012
@@ -1256,7 +1256,7 @@ public abstract class BasicRPCCommunicat
       }
       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());
       }


Reply via email to