RandomGeneratorRules Refaster recipes
Apache 2.0Refaster rules related to expressions dealing with RandomGenerator instances.
Source.
tech. picnic. errorprone. refasterrules. RandomGeneratorRulesRecipesmod run . --recipe= tech. picnic. errorprone. refasterrules. RandomGeneratorRulesRecipesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Prefer
RandomGenerator#nextDouble(double)over more fragile alternatives - Prefer
RandomGenerator#nextDouble(double origin, double bound)over more fragile alternatives - Refaster template
RandomGeneratorRules.RandomGeneratorNextInt - Prefer
RandomGenerator#nextInt(int origin, int bound)over more fragile alternatives - Prefer
RandomGenerator#nextLong(long)over more contrived alternatives - Prefer
RandomGenerator#nextLong(long origin, long bound)over more fragile alternatives