rodmeneses commented on code in PR #23912:
URL: https://github.com/apache/flink/pull/23912#discussion_r1445462324


##########
flink-core/src/main/java/org/apache/flink/api/connector/sink2/Sink.java:
##########
@@ -52,11 +54,30 @@ public interface Sink<InputT> extends Serializable {
      * @param context the runtime context.
      * @return A sink writer.
      * @throws IOException for any failure during creation.
+     * @deprecated Please implement {@link #createWriter(WriterInitContext)}. 
For backward
+     *     compatibility reasons - to keep {@link Sink} a functional interface 
- Flink did not
+     *     provide a default implementation. New {@link Sink} implementations 
should implement this
+     *     method, but it will not be used, and it will be removed in 1.20.0 
release. Do not use
+     *     {@link Override} annotation when implementing this method, to 
prevent compilation errors
+     *     when migrating to 1.20.x release.
      */
+    @Deprecated

Review Comment:
   do we use the attribute option `since` in other places? it might be useful 
to have that in the annotation itself



-- 
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: issues-unsubscr...@flink.apache.org

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

Reply via email to