RandomGeneratorRules Refaster recipes

Apache 2.0

Refaster rules related to expressions dealing with RandomGenerator instances. Source.

tech.picnic.errorprone.refasterrules.RandomGeneratorRulesRecipes
mod run . --recipe=tech.picnic.errorprone.refasterrules.RandomGeneratorRulesRecipes

Install 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.

  1. Prefer RandomGenerator#nextDouble(double) over more fragile alternatives
  2. Prefer RandomGenerator#nextDouble(double origin, double bound) over more fragile alternatives
  3. Refaster template RandomGeneratorRules.RandomGeneratorNextInt
  4. Prefer RandomGenerator#nextInt(int origin, int bound) over more fragile alternatives
  5. Prefer RandomGenerator#nextLong(long) over more contrived alternatives
  6. Prefer RandomGenerator#nextLong(long origin, long bound) over more fragile alternatives