fapaul commented on a change in pull request #17870:
URL: https://github.com/apache/flink/pull/17870#discussion_r758214846



##########
File path: 
flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/connector/kafka/sink/TopicSelector.java
##########
@@ -18,14 +18,12 @@
 package org.apache.flink.connector.kafka.sink;
 
 import org.apache.flink.annotation.PublicEvolving;
-
-import java.io.Serializable;
-import java.util.function.Function;
+import org.apache.flink.util.function.SerializableFunction;
 
 /**
  * Selects a topic for the incoming record.
  *
  * @param <IN> type of the incoming record
  */
 @PublicEvolving
-public interface TopicSelector<IN> extends Function<IN, String>, Serializable 
{}
+public interface TopicSelector<IN> extends SerializableFunction<IN, String> {}

Review comment:
       Good catch, yeah it breaks




-- 
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]


Reply via email to