Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate ApiImplicitParam defaultValue #27

Merged
merged 5 commits into from
Jan 2, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix check
  • Loading branch information
SiBorea committed Jan 2, 2025
commit 91fd041e75150d10cb5ce456de9ebc0ba1adbb0a
Original file line number Diff line number Diff line change
@@ -41,7 +41,10 @@ public String getDescription() {
public TreeVisitor<?, ExecutionContext> getVisitor() {
// This recipe is after ChangeType recipe
return Preconditions.check(
new UsesMethod<>("io.swagger.annotations.ApiImplicitParam dataTypeClass()", false),
Preconditions.or(
new UsesMethod<>("io.swagger.annotations.ApiImplicitParam dataTypeClass()", false),
new UsesMethod<>("io.swagger.annotations.ApiImplicitParam defaultValue()", false)
),
new JavaIsoVisitor<ExecutionContext>() {
@Override
public J.Annotation visitAnnotation(J.Annotation annotation, ExecutionContext ctx) {
Loading