XComp commented on code in PR #23770:
URL: https://github.com/apache/flink/pull/23770#discussion_r1401771193
##########
flink-runtime/src/test/java/org/apache/flink/runtime/operators/testutils/DriverTestBase.java:
##########
@@ -190,18 +190,18 @@ protected void setNumFileHandlesForSort(int
numFileHandles) {
this.numFileHandles = numFileHandles;
}
- @SuppressWarnings("rawtypes")
+ @SuppressWarnings({"rawtypes", "unchecked"})
protected void testDriver(Driver driver, Class stubClass) throws Exception
{
Review Comment:
```suggestion
protected void testDriver(Driver driver, Class<? extends S> stubClass)
throws Exception {
```
I guess, the trick to avoid adding another `@SuppressWarnings` is to have
the generic class being specified in the method signature. :thinking: WDYT?
--
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]