Package org.openrewrite.java.spring
Class ImplicitWebAnnotationNames
- java.lang.Object
-
- org.openrewrite.Recipe
-
- org.openrewrite.java.spring.ImplicitWebAnnotationNames
-
public class ImplicitWebAnnotationNames extends org.openrewrite.RecipeRemove implicit web-annotation argument names and rename the associated variable.
Note. kebab and snake case annotation argument names are excluded- @PathVariable(value = "p3") Long anotherName changes to @PathVariable Long p3
- @PathVariable("id") Long id changes to @PathVariable Long id
-
-
Constructor Summary
Constructors Constructor Description ImplicitWebAnnotationNames()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()java.lang.StringgetDisplayName()protected org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>getVisitor()
-
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
public java.lang.String getDescription()
- Overrides:
getDescriptionin classorg.openrewrite.Recipe
-
getVisitor
protected org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor()
- Overrides:
getVisitorin classorg.openrewrite.Recipe
-
-