Use StringUtils utility methods

MSAL

Replaces common string null and empty checks with org.openrewrite.internal.StringUtils utility methods.

org.openrewrite.java.recipes.UseStringUtilsRecipes
mod run . --recipe=org.openrewrite.java.recipes.UseStringUtilsRecipes

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. Use StringUtils#isBlank(String)
  2. Use !StringUtils#isBlank(String)
  3. Use StringUtils#isNotEmpty(String)
  4. Use StringUtils#isNullOrEmpty(String)