commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1299157 - /commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/builder/AbstractGraphConnection.java
Date Sat, 10 Mar 2012 07:37:01 GMT
Author: simonetripodi
Date: Sat Mar 10 07:37:00 2012
New Revision: 1299157

URL: http://svn.apache.org/viewvc?rev=1299157&view=rev
Log:
reflected Connector APIs in the Abstract module

Modified:
    commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/builder/AbstractGraphConnection.java

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/builder/AbstractGraphConnection.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/builder/AbstractGraphConnection.java?rev=1299157&r1=1299156&r2=1299157&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/builder/AbstractGraphConnection.java
(original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/builder/AbstractGraphConnection.java
Sat Mar 10 07:37:00 2012
@@ -42,14 +42,14 @@ public abstract class AbstractGraphConne
         }
     }
 
-    protected final V addVertex( V vertex )
+    protected final <N extends V> N addVertex( N node )
     {
-        return connector.addVertex( vertex );
+        return connector.addVertex( node );
     }
 
-    protected final HeadVertexConnector<V, E> addEdge( E edge )
+    protected final <A extends E> HeadVertexConnector<V, E> addEdge( A arc )
     {
-        return connector.addEdge( edge );
+        return connector.addEdge( arc );
     }
 
     public abstract void connect();



Mime
View raw message