All Downloads are FREE. Search and download functionalities are using the official Maven repository.

resources.report.rules.findbugs.DM_INVALID_MIN_MAX.html Maven / Gradle / Ivy



DM_INVALID_MIN_MAX

Dm: Incorrect combination of Math.max and Math.min (DM_INVALID_MIN_MAX)

This code tries to limit the value bounds using the construct like Math.min(0, Math.max(100, value)). However the order of the constants is incorrect: it should be Math.min(100, Math.max(0, value)). As the result this code always produces the same result (or NaN if the value is NaN).





© 2015 - 2024 Weber Informatics LLC | Privacy Policy