Skip to content

Add missing @Override annotations#1014

Open
msbarry wants to merge 3 commits into
locationtech:masterfrom
msbarry:override-annotations
Open

Add missing @Override annotations#1014
msbarry wants to merge 3 commits into
locationtech:masterfrom
msbarry:override-annotations

Conversation

@msbarry

@msbarry msbarry commented Nov 8, 2023

Copy link
Copy Markdown
Contributor

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 <msb5014@gmail.com>
@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

1 participant