gharris1727 commented on code in PR #13184:
URL: https://github.com/apache/kafka/pull/13184#discussion_r1103257875


##########
connect/runtime/src/test/java/org/apache/kafka/connect/runtime/ErrorHandlingTaskTest.java:
##########
@@ -494,15 +500,25 @@ private void expectTopicCreation(String topic) {
         }
     }
 
+    private void mockSinkTransform() {
+        FaultyPassthrough<SinkRecord> faultyPassthrough = new 
FaultyPassthrough<>();
+        @SuppressWarnings("unchecked")
+        Class<? extends Transformation<?>> value = (Class<? extends 
Transformation<?>>) (Class<?>) FaultyPassthrough.class;

Review Comment:
   Unfortunately this is a case where the IDE linter is wrong, it won't compile 
without this cast:
   
   ```
   error: incompatible types: Class<FaultyPassthrough> cannot be converted to 
Class<? extends Transformation<?>>
           Class<? extends Transformation<?>> value = (Class<? extends 
Transformation<?>>) FaultyPassthrough.class;
   ```



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to