Is there a checkstyle rule that will catch something like this:
double result = someInt / someOtherInt;
result
is double (so clearly fractions are desired) yet the right-hand side would do integer division (rounding down).
Does something like this exist?