Suppressed an IDEA warning.

I believe that having the same style of parentheses on both sides of compare is more readable.
This commit is contained in:
Šesták Vít
2016-01-18 13:14:14 +01:00
parent 930a32e592
commit c63f0ab7ec

View File

@@ -9,6 +9,7 @@ final case class ReportInfo(
import scala.math.Ordered.orderingToOrdered
//noinspection ScalaUnnecessaryParentheses
override def compare(that: ReportInfo): Int = ((projectName, subprojectNameOption, fullId)) compare ((that.projectName, that.subprojectNameOption, that.fullId))
// It seems to be a good idea to have a custom equals and hashCode for performance reasons