Package org.openrewrite.java.cleanup
@NonNullApi
package org.openrewrite.java.cleanup
-
ClassesClassDescriptionHideUtilityClassConstructorVisitor 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 constructorRemoves all
MethodCallmatching both theRemoveMethodCallVisitor.methodMatcherand theRemoveMethodCallVisitor.argumentPredicatefor all arguments.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.