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

Reduce code duplication in JDTUtils.getFieldAccessors(). #1075

Closed
mrglavas opened this issue Nov 5, 2024 · 0 comments · Fixed by #1076
Closed

Reduce code duplication in JDTUtils.getFieldAccessors(). #1075

mrglavas opened this issue Nov 5, 2024 · 0 comments · Fixed by #1076
Assignees
Labels
clean-up language client language server integration
Milestone

Comments

@mrglavas
Copy link
Contributor

mrglavas commented Nov 5, 2024

Replace this sequence of calls (basically an unrolled loop) with a list collector.

accessorNames.add("get" + fieldName);
accessorNames.add("set" + fieldName);
accessorNames.add("is" + fieldName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clean-up language client language server integration
Projects
Development

Successfully merging a pull request may close this issue.

1 participant