This is an automated email from the ASF dual-hosted git repository. guoweijie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
commit eb19716fd1fffc5425556fbb93311daeff077682 Author: Weijie Guo <[email protected]> AuthorDate: Thu Sep 12 16:26:08 2024 +0800 [FLINK-5336][core] Remove IOReadableWritable from Path --- .../main/java/org/apache/flink/core/fs/Path.java | 45 +--------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/flink-core/src/main/java/org/apache/flink/core/fs/Path.java b/flink-core/src/main/java/org/apache/flink/core/fs/Path.java index 1f9c560bb1c..1e08f5a6d27 100644 --- a/flink-core/src/main/java/org/apache/flink/core/fs/Path.java +++ b/flink-core/src/main/java/org/apache/flink/core/fs/Path.java @@ -47,7 +47,7 @@ import java.util.regex.Pattern; * {@code serializeToDataOutputView} and {@code deserializeFromDataInputView} instead. */ @Public -public class Path implements IOReadableWritable, Serializable { +public class Path implements Serializable { private static final long serialVersionUID = 1L; @@ -449,49 +449,6 @@ public class Path implements IOReadableWritable, Serializable { return new Path(scheme + ":" + "//" + authority + pathUri.getPath()); } - // ------------------------------------------------------------------------ - // Legacy Serialization - // ------------------------------------------------------------------------ - - /** - * Read uri from {@link DataInputView}. - * - * @param in the input view to read the uri. - * @throws IOException if an error happened. - * @deprecated the method is deprecated since Flink 1.19 because Path will no longer implement - * {@link IOReadableWritable} in future versions. Please use {@code - * deserializeFromDataInputView} instead. - * @see <a - * href="https://cwiki.apache.org/confluence/display/FLINK/FLIP-347%3A+Remove+IOReadableWritable - * +serialization+in+Path"> FLIP-347: Remove IOReadableWritable serialization in Path </a> - */ - @Deprecated - @Override - public void read(DataInputView in) throws IOException { - Path path = deserializeFromDataInputView(in); - if (path != null) { - uri = path.toUri(); - } - } - - /** - * Write uri to {@link DataOutputView}. - * - * @param out the output view to be written the uri. - * @throws IOException if an error happened. - * @deprecated the method is deprecated since Flink 1.19 because Path will no longer implement - * {@link IOReadableWritable} in future versions. Please use {@code - * serializeToDataOutputView} instead. - * @see <a - * href="https://cwiki.apache.org/confluence/display/FLINK/FLIP-347%3A+Remove+IOReadableWritable - * +serialization+in+Path"> FLIP-347: Remove IOReadableWritable serialization in Path </a> - */ - @Deprecated - @Override - public void write(DataOutputView out) throws IOException { - serializeToDataOutputView(this, out); - } - // ------------------------------------------------------------------------ // Utilities // ------------------------------------------------------------------------
