Fix findbugs issue: Integral division result cast to double or float