Skip to content

Conversation

@sambsnyd
Copy link
Member

@sambsnyd sambsnyd commented Feb 7, 2025

return false;
}
return true;
return !!variableDeclarations.getAllAnnotations().isEmpty();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beautiful

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.withPrefix(vd.getPrefix());
} else {
J.VariableDeclarations result = template.<J.VariableDeclarations>apply(getCursor(), vd.getCoordinates().replace(), simpleName, initializer)
J.VariableDeclarations result = template.apply(getCursor(), vd.getCoordinates().replace(), simpleName, initializer)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes trip up the compiler; we should make the recipe back off in these cases.

@timtebeek timtebeek marked this pull request as draft February 7, 2025 18:46
@timtebeek timtebeek added the bug Something isn't working label Apr 12, 2025
@timtebeek timtebeek closed this Apr 12, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Apr 12, 2025
@timtebeek timtebeek deleted the refactor/common-static-analysis-issues branch April 12, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants