Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/org/checkstyle/autofix/CheckstyleAutoFix.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import java.util.Collections;
import java.util.List;

import org.checkstyle.autofix.recipe.UpperEllRecipe;
import org.checkstyle.autofix.recipe.UpperEll;
import org.openrewrite.Recipe;

/**
Expand All @@ -42,7 +42,7 @@ public String getDescription() {
public List<Recipe> getRecipeList() {
return Collections.singletonList(

new UpperEllRecipe()
new UpperEll()
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* Fixes Checkstyle UpperEll violations by replacing lowercase 'l' suffix
* in long literals with uppercase 'L'.
*/
public class UpperEllRecipe extends Recipe {
public class UpperEll extends Recipe {

@Override
public String getDisplayName() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/rewrite/recipes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ tags:
- checkstyle
- static-analysis
recipeList:
- org.checkstyle.autofix.recipe.UpperEllRecipe
- org.checkstyle.autofix.recipe.UpperEll
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* Recipe to rename classes starting with 'Input' to 'Output'.
* For example, a class named InputExample will be renamed to OutputExample.
*/
public class ClassRenameRecipe extends Recipe {
public class InputClassRenamer extends Recipe {

@Override
public String getDisplayName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.nio.file.Files;
import java.nio.file.Paths;

import org.checkstyle.autofix.ClassRenameRecipe;
import org.checkstyle.autofix.InputClassRenamer;
import org.openrewrite.Recipe;
import org.openrewrite.test.RewriteTest;

Expand All @@ -44,7 +44,7 @@ public abstract class AbstractRecipeTest implements RewriteTest {
* @return the preprocessing recipe
*/
private Recipe createPreprocessingRecipe() {
return new ClassRenameRecipe();
return new InputClassRenamer();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
import org.junit.jupiter.api.Test;
import org.openrewrite.Recipe;

public class UpperEllRecipeTest extends AbstractRecipeTest {
public class UpperEllTest extends AbstractRecipeTest {

@Override
protected Recipe getRecipe() {
return new UpperEllRecipe();
return new UpperEll();
}

@Test
Expand Down