Skip to content

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

Merged
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:features/codeql-missing-override
Jul 16, 2026
Merged

Add missing @Override annotations (CodeQL java/missing-override-annotation)#246
vharseko merged 1 commit 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.

@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
…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 force-pushed the features/codeql-missing-override branch from e6e5a41 to b19939e Compare July 16, 2026 17:23
@vharseko
vharseko merged commit e516274 into OpenIdentityPlatform:master Jul 16, 2026
4 of 13 checks passed
@vharseko
vharseko deleted the features/codeql-missing-override branch July 16, 2026 17:23
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