WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@msbarry
Copy link
Contributor

@msbarry msbarry commented Nov 8, 2023

I'm planning to add generics to some of the spatial index classes (see #1012 (comment)) and to make that refactor a bit safer, it would help to have @Override annotations on any method that overrides a superclass method to generate a compile error when there's a type mismatch between the method in parent which may have generics mid-refactor and child class which may not.

This PR runs Intellij's "Add missing @Override annotations" automated fix to all of the java files in the project.

If we wanted to we could also add the "MissingOverride" checkstyle check to enforce this?

Signed-off-by: Mike Barry <[email protected]>
@msbarry msbarry force-pushed the override-annotations branch from 9cc4e94 to 5fa638c Compare November 8, 2023 10:42
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.

1 participant