diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java b/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java index abb2339ee2a..e09b391bac7 100644 --- a/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java +++ b/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java @@ -843,7 +843,9 @@ public static byte[] getMD5(byte[] source) { * * @param file file source. * @return MD5 byte array. + * @deprecated This method will be removed in the next version. */ + @Deprecated public static byte[] getMD5(File file) throws IOException { InputStream is = new FileInputStream(file); try { @@ -858,7 +860,9 @@ public static byte[] getMD5(File file) throws IOException { * * @param is input stream. * @return MD5 byte array. + * @deprecated This method will be removed in the next version. */ + @Deprecated public static byte[] getMD5(InputStream is) throws IOException { return getMD5(is, 1024 * 8); }