Skip to content

[ZEPPELIN-3225] Add missing @Override annotations in zeppelin-server - #5359

Open
kimyenac wants to merge 1 commit into
apache:masterfrom
kimyenac:ZEPPELIN-3225
Open

[ZEPPELIN-3225] Add missing @Override annotations in zeppelin-server#5359
kimyenac wants to merge 1 commit into
apache:masterfrom
kimyenac:ZEPPELIN-3225

Conversation

@kimyenac

@kimyenac kimyenac commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

What is this PR for?

The original report is about missing @OverRide annotations in
ActiveDirectoryGroupRealm. Those were already added by ZEPPELIN-5130, so the
class is clean on current master.

To close out the issue with something useful, I scanned the whole
zeppelin-server module for methods that implement or override a supertype
method without the annotation, and found seven remaining cases:

  • five toJson() implementations of JsonSerializable
    (HeliumConf, NpmPackage, WebpackResult, WatcherMessage,
    CredentialsInfoSaving)
  • shouldSkipClass and shouldSkipField in JsonExclusionStrategy,
    which implement Gson's ExclusionStrategy

What type of PR is it?

Improvement

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-3225

How should this be tested?

Annotation only change with no behaviour change, so the compiler is the check.
./mvnw compile -pl zeppelin-server passes, RAT reports 0 unapproved licenses,
and Checkstyle reports no new violations in the touched files.

Questions:

  • Does the licenses files need update? No.
  • Is there breaking changes for older versions? No.
  • Does this needs documentation? No.

The original report was about ActiveDirectoryGroupRealm, which was already
covered by ZEPPELIN-5130. A scan of the whole zeppelin-server module found
seven methods that still implement a supertype method without @OverRide:

* five toJson() implementations of JsonSerializable
  (HeliumConf, NpmPackage, WebpackResult, WatcherMessage, CredentialsInfoSaving)
* shouldSkipClass and shouldSkipField in JsonExclusionStrategy,
  which implement Gson's ExclusionStrategy

Annotation only change, no behaviour change.
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.

2 participants