View by Classes

Findings - Overview

warning Use the nextInt method of Random rather than nextDouble to generate a random integer (Findbugs)

Method org.jcoderz.commons.util.FileUtils.createTempDir(File, String) uses the nextDouble method of Random to generate a random integer; using nextInt is more efficient

Further info on the wiki.

If r is a java.util.Random, you can generate a random number from 0 to n-1 using r.nextInt(n), rather than using (int)(r.nextDouble() * n).

1org.jcoderz.commons.util.FileUtils
 [201]