Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
}
Expand Down
Loading