simplified the equals method for CallPath

This commit is contained in:
Inderjeet Singh 2010-10-17 16:04:07 +00:00
parent 5adfa4bc04
commit 8cbdd8a030

View File

@ -45,16 +45,7 @@ public final class CallPath {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
CallPath other = (CallPath) obj;
if (path == null && other.path != null) {
return false;
} else if (!path.equals(other.path)) {
return false;
}
return true;
return getClass() == obj.getClass() && path == ((CallPath)obj).path;
}
@Override