Repository navigation
Commit 887ce01
authored
MINOR: suppress unchecked warning in WorkerTest (#23893)
Mocking `Transformation.class` with Mockito returns a raw type, causing
an unchecked conversion to `Transformation<SourceRecord>`.
```
> Task :connect:runtime:compileTestJava
Note:
/Users/parker/opensource/kafka/connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerTest.java
uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
```
Add a local `@SuppressWarnings("unchecked")`, following the existing
approach in `TransformationStageTest.applyAndAssert`.
Validation:
- `./gradlew :connect:runtime:compileTestJava --rerun-tasks`
- The unchecked message for WorkerTest.java no longer appeared.
Reviewers: Ken Huang <s7133700@gmail.com>, Chia-Ping Tsai
<chia7712@gmail.com>1 parent c9da36e commit 887ce01
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
| 978 | + | |
978 | 979 | | |
979 | 980 | | |
980 | 981 | | |
| |||
0 commit comments