Math.round() called with an integer or long type results in truncation because Math.round only accepts floats or doubles and some integers and longs can’t be represented with float.
Suppress false positives by adding the suppression annotation @SuppressWarnings("MathRoundIntLong")
to the enclosing element.