Author: simonetripodi
Date: Fri Jun 17 16:08:02 2011
New Revision: 1136918
URL: http://svn.apache.org/viewvc?rev=1136918&view=rev
Log:
used getters in equals() method
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=1136918&r1=1136917&r2=1136918&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:08:02 2011
@@ -168,12 +168,12 @@ public final class InMemoryPath<V extend
return false;
}
- if ( !target.equals( other.target ) )
+ if ( !target.equals( other.getTarget() ) )
{
return false;
}
- if ( !vertices.equals( other.vertices ) )
+ if ( !vertices.equals( other.getVertices() ) )
{
return false;
}
@@ -183,7 +183,7 @@ public final class InMemoryPath<V extend
return false;
}
- if ( !weigth.equals( other.weigth ) )
+ if ( !weigth.equals( other.getWeight() ) )
{
return false;
}