File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
internal-api/src/main/java/datadog/trace/util Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 55import java .nio .charset .StandardCharsets ;
66import java .security .MessageDigest ;
77import java .security .NoSuchAlgorithmException ;
8- import java .util .Locale ;
98import java .util .concurrent .ThreadLocalRandom ;
109import javax .annotation .Nonnull ;
1110
@@ -142,10 +141,6 @@ public static String trim(final String string) {
142141 return null == string ? "" : string .trim ();
143142 }
144143
145- private static String hex (char ch ) {
146- return Integer .toHexString (ch ).toUpperCase (Locale .ENGLISH );
147- }
148-
149144 public static String sha256 (String input ) throws NoSuchAlgorithmException {
150145 MessageDigest digest = MessageDigest .getInstance ("SHA-256" );
151146 byte [] hash = digest .digest (input .getBytes (StandardCharsets .UTF_8 ));
You can’t perform that action at this time.
0 commit comments