File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed
java/org/checkstyle/autofix
resources/META-INF/rewrite
test/java/org/checkstyle/autofix Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2020import java .util .Collections ;
2121import java .util .List ;
2222
23- import org .checkstyle .autofix .recipe .UpperEllRecipe ;
23+ import org .checkstyle .autofix .recipe .UpperEll ;
2424import org .openrewrite .Recipe ;
2525
2626/**
@@ -42,7 +42,7 @@ public String getDescription() {
4242 public List <Recipe > getRecipeList () {
4343 return Collections .singletonList (
4444
45- new UpperEllRecipe ()
45+ new UpperEll ()
4646 );
4747 }
4848}
Original file line number Diff line number Diff line change 2828 * Fixes Checkstyle UpperEll violations by replacing lowercase 'l' suffix
2929 * in long literals with uppercase 'L'.
3030 */
31- public class UpperEllRecipe extends Recipe {
31+ public class UpperEll extends Recipe {
3232
3333 @ Override
3434 public String getDisplayName () {
Original file line number Diff line number Diff line change 77 - checkstyle
88 - static-analysis
99recipeList :
10- - org.checkstyle.autofix.recipe.UpperEllRecipe
10+ - org.checkstyle.autofix.recipe.UpperEll
Original file line number Diff line number Diff line change 2727 * Recipe to rename classes starting with 'Input' to 'Output'.
2828 * For example, a class named InputExample will be renamed to OutputExample.
2929 */
30- public class ClassRenameRecipe extends Recipe {
30+ public class InputClassRenamer extends Recipe {
3131
3232 @ Override
3333 public String getDisplayName () {
Original file line number Diff line number Diff line change 2424import java .nio .file .Files ;
2525import java .nio .file .Paths ;
2626
27- import org .checkstyle .autofix .ClassRenameRecipe ;
27+ import org .checkstyle .autofix .InputClassRenamer ;
2828import org .openrewrite .Recipe ;
2929import org .openrewrite .test .RewriteTest ;
3030
@@ -44,7 +44,7 @@ public abstract class AbstractRecipeTest implements RewriteTest {
4444 * @return the preprocessing recipe
4545 */
4646 private Recipe createPreprocessingRecipe () {
47- return new ClassRenameRecipe ();
47+ return new InputClassRenamer ();
4848 }
4949
5050 /**
Original file line number Diff line number Diff line change 2222import org .junit .jupiter .api .Test ;
2323import org .openrewrite .Recipe ;
2424
25- public class UpperEllRecipeTest extends AbstractRecipeTest {
25+ public class UpperEllTest extends AbstractRecipeTest {
2626
2727 @ Override
2828 protected Recipe getRecipe () {
29- return new UpperEllRecipe ();
29+ return new UpperEll ();
3030 }
3131
3232 @ Test
You can’t perform that action at this time.
0 commit comments