Skip to content

Commit

Permalink
refactor: Add missing @Override to overriding and implementing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek and TeamModerne committed Mar 12, 2024
1 parent 5822165 commit 7622f66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public String getDescription() {
@Override
public TreeVisitor<?, ExecutionContext> getVisitor() {
return new JavaIsoVisitor<ExecutionContext>() {
@Override
public J.Literal visitLiteral(J.Literal literal, ExecutionContext ctx) {
J.Literal l = super.visitLiteral(literal, ctx);
if (l.getType() != JavaType.Primitive.String || !oldLiteralValue.equals(literal.getValue())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class LombokValueToRecord extends ScanningRecipe<Map<String, Set<String>>
@Nullable
Boolean useExactToString;

@Override
public String getDisplayName() {
return "Convert `@lombok.Value` class to Record";
}
Expand Down

0 comments on commit 7622f66

Please sign in to comment.