Skip to content

Commit

Permalink
Add equals/hashCode for ScalaProject.
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos committed Sep 12, 2013
1 parent 442d02a commit 6f02d46
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -785,4 +785,11 @@ class ScalaProject private (val underlying: IProject) extends ClasspathManagemen
}

override def toString: String = underlying.getName

override def equals(other: Any): Boolean = other match {
case otherSP: ScalaProject => underlying == otherSP.underlying
case _ => false
}

override def hashCode(): Int = underlying.hashCode()
}

0 comments on commit 6f02d46

Please sign in to comment.