Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
Fix the null refs in the refrence message
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Aug 27, 2014
1 parent 8081af8 commit c3ab9e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public override bool Equals(object obj)
var other = obj as ReferenceDescription;

return other != null &&
Name.Equals(other.Name) &&
Version.Equals(other.Version) &&
Path.Equals(other.Path) &&
Type.Equals(other.Type) &&
string.Equals(Name, other.Name) &&
object.Equals(Version, other.Version) &&
string.Equals(Path, other.Path) &&
string.Equals(Type, other.Type) &&
Enumerable.SequenceEqual(Dependencies, other.Dependencies);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public override bool Equals(object obj)
{
var other = obj as ReferenceItem;
return other != null &&
Name.Equals(other.Name) &&
Version.Equals(other.Version);
string.Equals(Name, other.Name) &&
object.Equals(Version, other.Version);
}
public override int GetHashCode()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public override bool Equals(object obj)
var other = obj as ReferencesMessage;

return other != null &&
RootDependency.Equals(other.RootDependency) &&
LongFrameworkName.Equals(other.LongFrameworkName) &&
FriendlyFrameworkName.Equals(other.FriendlyFrameworkName) &&
string.Equals(RootDependency, other.RootDependency) &&
string.Equals(LongFrameworkName, other.LongFrameworkName) &&
string.Equals(FriendlyFrameworkName, other.FriendlyFrameworkName) &&
Enumerable.SequenceEqual(ProjectReferences, other.ProjectReferences) &&
Enumerable.SequenceEqual(FileReferences, other.FileReferences) &&
Enumerable.SequenceEqual(Dependencies, other.Dependencies) &&
Expand Down

0 comments on commit c3ab9e1

Please sign in to comment.