Skip to content

Update documentation to exclude static methods from @OverrideOnly #120

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

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

JojOatXGME
Copy link
Contributor

@JojOatXGME JojOatXGME commented Feb 9, 2025

Update Javadoc of @OverrideOnly to exclude static methods. While this can technically be considered a semantic change of the annotation, it only removes nonsensical warnings.

Screenshot showing a warning at a call site of the static method LeafOccurrenceMapper.withPointer, reporting that the method can only be overridden.

A warning reporting that a static method (e.g. LeafOccurrenceMapper.withPointer) can only be overridden is rather strange, considering that such method is generally impossible to override.

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants