mysema/scalagen — Issue #26: further improve equals handling
Author: timowest
Created: 2012-01-17 21:56:31+00:00
State: open

override def equals(o: Any): Boolean = {
o.isInstanceOf[Resource] && o.asInstanceOf[Resource].path == path
}

should be

override def equals(o: Any): Boolean = o match {
case o: Resource => o.path == path
case _ => false
}