Package org.openrewrite.staticanalysis
@NullMarked
package org.openrewrite.staticanalysis
-
ClassesClassDescriptionA visitor that identifies and addresses potential issues related to the use of
equalsmethods in Java, particularly to avoid null pointer exceptions when comparing strings.Finalize method arguments v2HideUtilityClassConstructorVisitor will perform the following operations on a Utility Class: Change any Public constructors to Private Change any Package-Private ("Default", no modifiers) to Private If the Implicit Default Constructor is used (as in, no explicit constructors defined), add a Private constructorThe recipe that replaces `instanceof` pattern matching by a simple variable declarations.This recipe converts local variables and method parameters to camel case convention.This recipe converts private fields to camel case convention.Recipe to useString.replace(CharSequence, CharSequence)when the fist argument is not a regular expression.