Skip to content

Add missing @Override annotations (CodeQL java/missing-override-annotation)#246

Open
vharseko wants to merge 2 commits into
OpenIdentityPlatform:masterfrom
vharseko:features/codeql-missing-override
Open

Add missing @Override annotations (CodeQL java/missing-override-annotation)#246
vharseko wants to merge 2 commits into
OpenIdentityPlatform:masterfrom
vharseko:features/codeql-missing-override

Conversation

@vharseko

@vharseko vharseko commented Jul 8, 2026

Copy link
Copy Markdown
Member

CodeQL: java/missing-override-annotation

Adds the missing @Override annotation to 308 methods across 97 files in 9 modules. Each annotated method overrides a superclass method or implements an interface method but lacked the annotation.

The change is annotation-only and behavior-preserving. Because @Override on a non-overriding method is a compile error, correctness is guaranteed by compilation:

  • All 39 affected Maven modules compile (mvn -pl <module> compile).
  • The two persistit/examples files (Ant-built, not in the Maven reactor) were verified with javac against persistit-core.

Distribution

module annotations
commons 56 files
script 22 files
i18n-framework 6 files
maven-external-dependency-plugin 5 files
guice 3 files
persistit (examples) 2 files
cassandra-embedded / build-tools / bloomfilter 1 each

Closes the open java/missing-override-annotation code-scanning alerts.

…ation)

Annotate 308 methods that override a superclass method or implement an
interface method but were missing @OverRide, across 97 files in 9 modules.
Annotation-only and behavior-preserving; verified by compiling every
affected Maven module (plus javac for the two persistit Ant examples).
@vharseko vharseko requested a review from maximthomas July 8, 2026 15:20
@vharseko vharseko added codeql CodeQL static-analysis findings refactoring Code cleanup / refactoring, no behavior change labels Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codeql CodeQL static-analysis findings refactoring Code cleanup / refactoring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants