merlimat opened a new pull request, #25430:
URL: https://github.com/apache/pulsar/pull/25430
## Motivation
Fix `rawtypes` compiler warnings in test code by adding proper generic type
parameters to raw types.
This is part of a series to clean up test compile warnings (following
production code cleanup in #25414-#25422).
## Changes
- Add proper type parameters: `Class` → `Class<?>`, `Producer` →
`Producer<?>`, `Consumer` → `Consumer<?>`, `Message` → `Message<?>`, `Schema` →
`Schema<?>`, `List` → `List<?>`, etc.
- Use diamond operator `<>` where type can be inferred
- Add `@SuppressWarnings("rawtypes")` at method level only where fixing raw
types would cascade into unchecked/type-erasure compile errors (e.g., TestNG
DataProvider methods returning `Object[][]`)
Affects ~99 files across all modules.
## Verifying this change
- `./gradlew compileTestJava` passes cleanly
- `rawtypes` warning count drops significantly
### 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]