reformat code

This commit is contained in:
Maxim Bachinsky 2020-07-07 15:22:05 +03:00
parent fcc1105b04
commit 13ef85a371
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,3 @@
package ru.touchin.roboswag.mvi_arch.marker
interface StateChange {
}
interface StateChange

View File

@ -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();