Refaster template StringRules.OptionalOfNullableFilterNotStringIsEmpty
Apache 2.0Prefer Optional.ofNullable(str).filter(not(String::isEmpty)) over more contrived alternatives.
tech. picnic. errorprone. refasterrules. StringRulesRecipes$OptionalOfNullableFilterNotStringIsEmptyRecipemod run . --recipe= 'tech. picnic. errorprone. refasterrules. StringRulesRecipes$OptionalOfNullableFilterNotStringIsEmptyRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.