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

Fix Duplicate @Nullable Annotations by fixing Equality Check #263

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

nimakarimipour
Copy link
Member

This PR resolves #262 where Annotator adds duplicate @Nullable annotations to fields that already have a @Nullable annotation with comments.

The issue occurred because the equality check for annotations was based on the entire annotation node, which includes comments, rather than just the annotation's name. This PR updates the equality check logic to compare annotations based solely on their names, ensuring that existing annotations are correctly detected and duplicates are avoided.

@nimakarimipour nimakarimipour added the bug Something isn't working label Nov 22, 2024
@nimakarimipour nimakarimipour self-assigned this Nov 22, 2024
@nimakarimipour nimakarimipour changed the title Fix Duplicate @Nullable Annotations by Improving Equality Check Fix Duplicate @Nullable Annotations by fixing Equality Check Nov 22, 2024
@nimakarimipour nimakarimipour merged commit 47e0f92 into master Nov 22, 2024
7 checks passed
@nimakarimipour nimakarimipour deleted the nimak/bug-fix-comment-annotation branch November 22, 2024 07:49
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
None yet
Development

Successfully merging this pull request may close these issues.

Bug Report: Annotator Incorrectly Adds Duplicate @Nullable Annotations
1 participant