Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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