Skip to main content Link Search Menu Expand Document (external link)

PrimitiveComparison

WARNING

Performance

View source code on GitHub

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.


Copyright © 2017-2023 Picnic Technologies BV