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

org.sonar.l10n.java.rules.squid.S2127.html Maven / Gradle / Ivy

There is a newer version: 8.6.0.37351
Show newest version

Double.longBitsToDouble expects a 64-bit, long argument. Pass it a smaller value, such as an int and the mathematical conversion into a double simply won't work as anticipated because the layout of the bits will be interpreted incorrectly, as if a child were trying to use an adult's gloves.

Noncompliant Code Example

int i = 42;
double d = Double.longBitsToDouble(i);  // Noncompliant




© 2015 - 2025 Weber Informatics LLC | Privacy Policy