Skip to content

Commit c909a05

Browse files
Anmol202005rdiachenko
authored andcommitted
renamed recipes
1 parent 76f932b commit c909a05

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/main/java/org/checkstyle/autofix/CheckstyleAutoFix.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import java.util.Collections;
2121
import java.util.List;
2222

23-
import org.checkstyle.autofix.recipe.UpperEllRecipe;
23+
import org.checkstyle.autofix.recipe.UpperEll;
2424
import 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
}

src/main/java/org/checkstyle/autofix/recipe/UpperEllRecipe.java renamed to src/main/java/org/checkstyle/autofix/recipe/UpperEll.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
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() {

src/main/resources/META-INF/rewrite/recipes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ tags:
77
- checkstyle
88
- static-analysis
99
recipeList:
10-
- org.checkstyle.autofix.recipe.UpperEllRecipe
10+
- org.checkstyle.autofix.recipe.UpperEll

src/test/java/org/checkstyle/autofix/ClassRenameRecipe.java renamed to src/test/java/org/checkstyle/autofix/InputClassRenamer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
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() {

src/test/java/org/checkstyle/autofix/recipe/AbstractRecipeTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.nio.file.Files;
2525
import java.nio.file.Paths;
2626

27-
import org.checkstyle.autofix.ClassRenameRecipe;
27+
import org.checkstyle.autofix.InputClassRenamer;
2828
import org.openrewrite.Recipe;
2929
import 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
/**

src/test/java/org/checkstyle/autofix/recipe/UpperEllRecipeTest.java renamed to src/test/java/org/checkstyle/autofix/recipe/UpperEllTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
import org.junit.jupiter.api.Test;
2323
import 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

0 commit comments

Comments
 (0)