merlimat opened a new pull request, #25428:
URL: https://github.com/apache/pulsar/pull/25428

   ## Motivation
   
   Fix compiler warnings in test code for small warning categories: `cast`, 
`static`, `removal`, `varargs`, and `overrides`.
   
   This is part of a series to clean up test compile warnings (following 
production code cleanup in #25414-#25422).
   
   ## Changes
   
   - **cast**: Remove redundant casts that the compiler can infer
   - **static**: Access static methods via class name instead of instance
   - **removal**: Add `@SuppressWarnings({"deprecation","removal"})` for 
`Thread.suspend()`/`Thread.resume()` in test utilities (these 
deprecated-for-removal APIs have no alternative for the test use case)
   - **overrides**: Fix missing `hashCode()` override to match `equals()` in 
`OldPolicies`
   
   ## Verifying this change
   
   - `./gradlew compileTestJava` passes cleanly
   - Warning count for these categories drops to zero
   
   ### Does this pull request potentially affect one of the following areas?
   
   - [x] *Test code only*
   
   ### Documentation
   
   - [x] `doc-not-needed` — test-only changes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to