Reports division by zero or remainder by zero.

In this case, users will get Nan for doubles or floats, and ArithmeticException for integers. Note, that the divisor is not necessarily a zero literal, but the expression that is statically known to be evaluated as zero. The fix suggests replacing division expression with the NaN constant for floating-point types.