reformat code
This commit is contained in:
parent
fcc1105b04
commit
13ef85a371
|
|
@ -1,4 +1,3 @@
|
|||
package ru.touchin.roboswag.mvi_arch.marker
|
||||
|
||||
interface StateChange {
|
||||
}
|
||||
interface StateChange
|
||||
|
|
|
|||
|
|
@ -19,12 +19,13 @@
|
|||
|
||||
package ru.touchin.roboswag.core.utils;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.security.MessageDigest;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
/**
|
||||
* Created by Gavriil Sitnikov on 29/08/2016.
|
||||
* Utility class to providing some string-related helper methods.
|
||||
|
|
@ -40,7 +41,7 @@ public final class StringUtils {
|
|||
@NonNull
|
||||
public static String md5(@NonNull final String string) throws NoSuchAlgorithmException, UnsupportedEncodingException {
|
||||
final MessageDigest digest = MessageDigest.getInstance("MD5");
|
||||
digest.update(string.getBytes("UTF-8"));
|
||||
digest.update(string.getBytes(StandardCharsets.UTF_8));
|
||||
final byte[] messageDigestArray = digest.digest();
|
||||
|
||||
final StringBuilder hexString = new StringBuilder();
|
||||
|
|
|
|||
Loading…
Reference in New Issue