mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-22 09:10:00 +01:00
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:
@@ -9,6 +9,7 @@ final case class ReportInfo(
|
|||||||
|
|
||||||
import scala.math.Ordered.orderingToOrdered
|
import scala.math.Ordered.orderingToOrdered
|
||||||
|
|
||||||
|
//noinspection ScalaUnnecessaryParentheses
|
||||||
override def compare(that: ReportInfo): Int = ((projectName, subprojectNameOption, fullId)) compare ((that.projectName, that.subprojectNameOption, that.fullId))
|
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
|
// It seems to be a good idea to have a custom equals and hashCode for performance reasons
|
||||||
|
|||||||
Reference in New Issue
Block a user