Skip to content

Fix compile warnings in mantis-server-agent module#864

Open
mliem2k wants to merge 1 commit into
Netflix:masterfrom
mliem2k:fix/mantis-server-agent-warnings
Open

Fix compile warnings in mantis-server-agent module#864
mliem2k wants to merge 1 commit into
Netflix:masterfrom
mliem2k:fix/mantis-server-agent-warnings

Conversation

@mliem2k

@mliem2k mliem2k commented Jul 12, 2026

Copy link
Copy Markdown

Context

mantis-server-agent module update for removing warnings, refer issue #393.

Change set:

  • MantisAgent: anonymous Thread subclass overriding only run() replaced with new Thread(this::shutdown).
  • TaskExecutor: anonymous ListenerCallQueue.Event<Listener> implementations now use the diamond operator instead of a redundant explicit type argument.
  • Hardware: filled in an empty @return javadoc tag on getSizeOfDisk().

No logic changes, no public interface changes.

Checklist

  • ./gradlew build compiles code correctly
  • Added new tests where applicable
  • ./gradlew test passes all tests
  • Extended README or added javadocs where applicable

Context: mantis-server-agent module update for removing warnings, refer issue Netflix#393.

Addresses:
- anonymous Thread subclass replaced with a method reference (MantisAgent)
- anonymous ListenerCallQueue.Event implementations use diamond operator instead of a redundant explicit type argument (TaskExecutor)
- filled in an empty @return javadoc tag (Hardware)
Copilot AI review requested due to automatic review settings July 12, 2026 23:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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