You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ad...@apache.org on 2022/11/27 12:11:44 UTC

[ozone] branch master updated: HDDS-7538. Remove unused OmUtils#getMD5Digest (#3996)

This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 7f3f28c54e HDDS-7538. Remove unused OmUtils#getMD5Digest (#3996)
7f3f28c54e is described below

commit 7f3f28c54e68fc52b40e8a413d1e67c746e79856
Author: Ritesh H Shukla <ke...@gmail.com>
AuthorDate: Sun Nov 27 04:11:38 2022 -0800

    HDDS-7538. Remove unused OmUtils#getMD5Digest (#3996)
---
 .../common/src/main/java/org/apache/hadoop/ozone/OmUtils.java | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
index 53e64a6199..f6e0bd1882 100644
--- a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
+++ b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
@@ -22,7 +22,6 @@ import com.google.common.base.Preconditions;
 import java.io.File;
 import java.io.IOException;
 import java.net.InetSocketAddress;
-import java.nio.charset.StandardCharsets;
 import java.security.MessageDigest;
 import java.security.NoSuchAlgorithmException;
 import java.security.SecureRandom;
@@ -329,16 +328,6 @@ public final class OmUtils {
     }
   }
 
-  public static byte[] getMD5Digest(String input) throws IOException {
-    try {
-      MessageDigest md = MessageDigest.getInstance(OzoneConsts.MD5_HASH);
-      return md.digest(input.getBytes(StandardCharsets.UTF_8));
-    } catch (NoSuchAlgorithmException ex) {
-      throw new IOException("Error creating an instance of MD5 digest.\n" +
-          "This could possibly indicate a faulty JRE");
-    }
-  }
-
   public static byte[] getSHADigest() throws IOException {
     try {
       SRAND.nextBytes(randomBytes);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org