Skip to content
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

Fix compile warnings in mantis-control-plane-client module #389

Open
liuml07 opened this issue Mar 29, 2023 · 3 comments · May be fixed by #421
Open

Fix compile warnings in mantis-control-plane-client module #389

liuml07 opened this issue Mar 29, 2023 · 3 comments · May be fixed by #421
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@liuml07
Copy link
Contributor

liuml07 commented Mar 29, 2023

There are compile warnings in the code due to:

  • deprecated APIs
  • missing @Nullable/@NotNull annotations
  • incomplete javadocs
  • lambda can be replaced with method references
  • raw usage of generic types
  • unnecessary type parameters (like Map<String> m = new HashMap<String>())
  • anonymous class can be replaced with lambdas
    and more.

We don't need to solve all of them, but a good coding exercise is to address most those compile warnings when possible. Guidelines are:

  1. Not change code logic, which should be addressed and filed PR separately
  2. Not change public interfaces (class, methods and fields) that would break other modules or applications. But it's safe to rename private fields or methods when necessary.
  3. Prefer readability to more concise code
  4. Improve tests in the module is welcome but not required
  5. Compile and pass all existing tests.

This tracks the effort for the mantis-control-plane-client module to make the code change scoped.

@liuml07 liuml07 added enhancement New feature or request good first issue Good for newcomers labels Mar 29, 2023
@mabelbot
Copy link

I'd like to help with this if possible!

@mabelbot
Copy link

mabelbot commented Apr 3, 2023

Thanks! I will start on this as soon as I can.

@mabelbot mabelbot linked a pull request Apr 16, 2023 that will close this issue
4 tasks
@mabelbot
Copy link

@liuml07 I started to open the PR at #421 to resolve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants