Replace getEstimatedEffortPerOccurrence() method with field
MSALRecipe classes that return a simple expression from getEstimatedEffortPerOccurrence() can use a Lombok annotated field instead, as long as that expression does not read instance state the field initializer would see before the constructor assigns it.
org. openrewrite. java. recipes. UseEstimatedEffortPerOccurrenceFieldmod run . --recipe= org. openrewrite. java. recipes. UseEstimatedEffortPerOccurrenceFieldInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.