Skip to content

Commit

Permalink
Fix RenameMethodsNamedHashcodeEqualOrToString class name casing
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd committed May 10, 2024
1 parent 1ed9c44 commit e15d17b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import java.util.Collections;
import java.util.Set;

public class RenameMethodsNamedHashcodeEqualOrTostring extends Recipe {
public class RenameMethodsNamedHashcodeEqualOrToString extends Recipe {
private static final MethodMatcher NO_ARGS = new MethodMatcher("*..* *()", true);
private static final MethodMatcher OBJECT_ARG = new MethodMatcher("*..* *(java.lang.Object)", true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ recipeList:
# - org.openrewrite.staticanalysis.RemoveUnusedLocalVariables
# - org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods
- org.openrewrite.staticanalysis.RenameLocalVariablesToCamelCase
- org.openrewrite.staticanalysis.RenameMethodsNamedHashcodeEqualOrTostring
- org.openrewrite.staticanalysis.RenameMethodsNamedHashcodeEqualOrToString
- org.openrewrite.staticanalysis.RenamePrivateFieldsToCamelCase
- org.openrewrite.staticanalysis.ReplaceLambdaWithMethodReference
- org.openrewrite.staticanalysis.ReplaceStringBuilderWithString
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
import static org.openrewrite.java.Assertions.java;

@SuppressWarnings({"MethodMayBeStatic", "MisspelledEquals", "BooleanMethodNameMustStartWithQuestion"})
class RenameMethodsNamedHashcodeEqualOrTostringTest implements RewriteTest {
class RenameMethodsNamedHashcodeEqualOrToStringTest implements RewriteTest {

@Override
public void defaults(RecipeSpec spec) {
spec.recipe(new RenameMethodsNamedHashcodeEqualOrTostring());
spec.recipe(new RenameMethodsNamedHashcodeEqualOrToString());
}

@DocumentExample
Expand Down

0 comments on commit e15d17b

Please sign in to comment.