8000 (Sonar) Fixed finding: "@Override should be used on overriding and implementing methods" by pixeeai · Pull Request #5907 · dockstore/dockstore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

(Sonar) Fixed finding: "@Override should be used on overriding and implementing methods" #5907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

pixeeai
Copy link
Contributor
@pixeeai pixeeai commented Jun 9, 2024

Remediation

This change fixes "@Override should be used on overriding and implementing methods" (id = java:S1161) identified by Sonar.

Details

This change adds missing @Override to known subclasses. Documenting inheritance will help readers and static analysis tools understand the code better, spot bugs easier, and in general lead to more efficient and effective review.

Our changes look something like this:

  interface AcmeParent {
     void doThing();
  } 

  class AcmeChild implements AcmeParent {

+   @Override
    void doThing() {
      thing();
    }
    
  }
More reading

🧚🤖 Powered by Pixeebot

Feedback | Community | Docs | Codemod ID: sonar:java/add-missing-override-s1161

@pixeeai
Copy link
Contributor Author
pixeeai commented Jun 9, 2024

This change was autogenerated from a GitHub app - called Pixeebot. A code-quality GitHub App for source code.

Free installation for Open Source projects: 👇
https://github.com/marketplace/pixeebot-automated-code-fixes

@denis-yuen
Copy link
Member
denis-yuen commented Jun 14, 2024

Probably need to work out something better for CircleCI and secrets, but this seems harmless enough and builds locally.

@denis-yuen denis-yuen self-requested a review June 14, 2024 20:47
@denis-yuen denis-yuen requested review from svonworl, a team, david4096 and hyunnaye and removed request for a team June 14, 2024 20:48
@denis-yuen denis-yuen merged commit 471e9c9 into dockstore:develop Jun 18, 2024
2 of 3 checks passed
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.

4 participants
0