Implicit numeric conversion is not a problem in itself but, if unexpected, may cause difficulties when tracing bugs.
Example:
double m(int i) {
return i * 10;
}
After the quick-fix is applied:
double m(int i) {
return (double) (i * 10);
}
Configure the inspection:
int
->long
).char
. The inspection will
still report conversion from and to floating-point numbers.