Skip to content

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

Open
sachinnn99 wants to merge 3 commits intoNetflix:masterfrom
sachinnn99:fix/compile-warnings-control-plane-client
Open

Fix compile warnings in mantis-control-plane-client module#839
sachinnn99 wants to merge 3 commits intoNetflix:masterfrom
sachinnn99:fix/compile-warnings-control-plane-client

Conversation

@sachinnn99
Copy link
Copy Markdown

Summary

Comprehensive fix for compile warnings in the mantis-control-plane-client module.

  • Convert anonymous classes to lambdas across HttpUtility, ConditionalRetry, and MasterClientWrapper
  • Replace deprecated JsonCodec constructor with JacksonCodecs.pojo() as recommended by the @Deprecated annotation
  • Replace deprecated HttpRequest.getUri() with HttpRequest.uri()
  • Expand wildcard imports (io.mantisrx.server.core.*) to specific imports in MantisMasterClientApi and MantisMasterGateway
  • Remove empty javadoc blocks with no descriptions
  • Use method references where applicable (HttpClientResponse::getStatus, HttpClientResponse::getContent)
  • Remove unused imports

Addresses #389. PR #421 addressed only 2 of many warnings — this PR provides a more comprehensive fix.

Test plan

  • ./gradlew :mantis-control-plane:mantis-control-plane-client:compileJava passes
  • ./gradlew :mantis-control-plane:mantis-control-plane-client:test passes
  • All changes are purely syntactic refactors — no behavioral changes

Replace Func1, Func2, Action0, and Action1 anonymous class instances
with lambda expressions in HttpUtility, ConditionalRetry, and
MasterClientWrapper. Remove unused imports.
Use JacksonCodecs.pojo() as recommended by the @deprecated annotation
on the JsonCodec constructor.
- Replace wildcard imports with specific imports in
  MantisMasterClientApi and MantisMasterGateway
- Remove empty javadoc blocks with no descriptions
- Use method references where applicable
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.

1 participant