PrimitiveComparison
WARNING
Performance
Summary
Ensure invocations of
Comparator#comparing{,Double,Int,Long}
match the return type of the provided function
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("PrimitiveComparison")
to the enclosing element.Disable this pattern completely by adding
-Xep:PrimitiveComparison:OFF
as compiler argument. Learn more.