You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/06/17 18:11:36 UTC

svn commit: r1136920 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java

Author: simonetripodi
Date: Fri Jun 17 16:11:36 2011
New Revision: 1136920

URL: http://svn.apache.org/viewvc?rev=1136920&view=rev
Log:
'end' vertex renamed to 'target'

Modified:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java?rev=1136920&r1=1136919&r2=1136920&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java Fri Jun 17 16:11:36 2011
@@ -50,15 +50,15 @@ public final class InMemoryPath<V extend
 
     private final LinkedList<WE> edges = new LinkedList<WE>();
 
-    public InMemoryPath( V start, V end, Double weigth )
+    public InMemoryPath( V start, V target, Double weigth )
     {
         if ( start == null )
         {
             throw new IllegalArgumentException( "Path source cannot be null" );
         }
-        if ( end == null )
+        if ( target == null )
         {
-            throw new IllegalArgumentException( "Path end cannot be null" );
+            throw new IllegalArgumentException( "Path target cannot be null" );
         }
         if ( weigth == null )
         {
@@ -66,7 +66,7 @@ public final class InMemoryPath<V extend
         }
 
         this.source = start;
-        this.target = end;
+        this.target = target;
         this.weigth = weigth;
     }