merlimat opened a new pull request, #25432:
URL: https://github.com/apache/pulsar/pull/25432
## Motivation
Suppress `deprecation` compiler warnings in test code. Test code
intentionally tests deprecated APIs to ensure backward compatibility — these
warnings are expected and cannot be fixed by migrating away from the deprecated
API.
This is part of a series to clean up test compile warnings (following
production code cleanup in #25414-#25422).
## Changes
- Add `@SuppressWarnings("deprecation")` at method or variable level for
tests that exercise deprecated APIs
- Common deprecated APIs tested: `SignatureAlgorithm`, `statsInterval()`,
`enableTls()`, various admin API methods
- Scope suppressions narrowly to the method or variable, never at class level
Affects ~247 files across all modules.
## Verifying this change
- `./gradlew compileTestJava` passes cleanly
- `deprecation` warning count 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]