StringRules Refaster recipes

Apache 2.0

Refaster rules related to expressions dealing with Strings. Source.

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

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. Refaster template StringRules.EmptyString
  2. Refaster template StringRules.StringIdentity
  3. Refaster template StringRules.StringIsEmptyWithString
  4. Refaster template StringRules.StringIsEmpty
  5. Refaster template StringRules.NotStringIsEmpty
  6. Refaster template StringRules.StringsIsNullOrEmpty
  7. Prefer String#isBlank() over less efficient alternatives
  8. Refaster template StringRules.OptionalOfNullableFilterNotStringIsEmpty
  9. Refaster template StringRules.OptionalFilterNotStringIsEmpty
  10. Refaster template StringRules.StringJoin
  11. Refaster template StringRules.StringJoinVarargs
  12. Refaster template StringRules.StringValueOfWithObject
  13. Refaster template StringRules.NewString3
  14. Refaster template StringRules.NewString1
  15. Refaster template StringRules.StringValueOf
  16. Refaster template StringRules.StringSubstring
  17. Refaster template StringRules.Utf8EncodedLength
  18. Refaster template StringRules.MathMaxNegativeOneStringIndexOfMinusInt
  19. Refaster template StringRules.MathMaxNegativeOneStringIndexOfMinusIntWithInt
  20. Refaster template StringRules.MathMaxNegativeOneStringIndexOfMinusString
  21. Refaster template StringRules.MathMaxNegativeOneStringIndexOfMinusStringWithInt
  22. Refaster template StringRules.MathMaxNegativeOneStringLastIndexOfMinusInt
  23. Refaster template StringRules.MathMaxNegativeOneStringLastIndexOfMinusString
  24. Refaster template StringRules.StringLastIndexOfMinusOneInt
  25. Prefer String#lastIndexOf(String, int) over less efficient alternatives
  26. Refaster template StringRules.StringStartsWith
  27. Refaster template StringRules.Formatted