Skip to content

Add missing @Override annotations across the codebase - #144

Closed
vharseko wants to merge 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:missing-override-annotation
Closed

vharseko wants to merge 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:missing-override-annotation

Conversation

@vharseko

Copy link
Copy Markdown
Member

Summary

Closes out the CodeQL note-severity category java/missing-override-annotation: 1327 alerts across 226 files.

  • Purely mechanical fix: every flagged method genuinely overrides a superclass method or implements an interface method, and simply lacked the @Override annotation. Added it in each case.
  • Safety net: @Override on a method that does not actually override anything is a compile error in Java, so the full mvn install build (below) is itself a correctness check on every one of the 1327 insertions — the compiler would have rejected any false positive.
  • No behavioral changes anywhere; this is annotation-only.

Test plan

  • mvn install -DskipITs -T 1C on the full reactor (all modules, including LDAP/OpenDJ integration tests) — clean build, 1556 tests, 0 failures, 0 errors.

Closes out CodeQL java/missing-override-annotation (1327 alerts, 226
files): every flagged method genuinely overrides/implements a super
type method, verified by the compiler itself (javac rejects an
incorrect @OverRide), plus a full mvn install run across all touched
modules (1556 tests, 0 failures).
@vharseko vharseko added java Pull requests that update java code framework OpenICF-java-framework connector:ldap LDAP connector connector:xml XML connector connector:databasetable Database table connector maven-plugin OpenICF-maven-plugin connector:groovy Groovy connector connector:csvfile CSV file connector dbcommon OpenICF-dbcommon connector:ssh SSH connector refactoring Code cleanup / tech debt, no behavior change labels Sep 21, 2026
@vharseko

Copy link
Copy Markdown
Member Author

Closing in favor of #136, which already covers the exact same 226 files (identical scope: add missing @OverRide annotations for java/missing-override-annotation) and has a fully green CI matrix across all OS/JDK combinations. Duplicate discovered after the fact — see this PR's own thread for the investigation. Apologies for the noise.

@vharseko vharseko closed this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connector:csvfile CSV file connector connector:databasetable Database table connector connector:groovy Groovy connector connector:ldap LDAP connector connector:ssh SSH connector connector:xml XML connector dbcommon OpenICF-dbcommon framework OpenICF-java-framework java Pull requests that update java code maven-plugin OpenICF-maven-plugin refactoring Code cleanup / tech debt, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant