Polishing

This commit is contained in:
Sam Brannen 2020-02-19 11:08:10 +01:00
parent acae174f8f
commit 8ff1ac59e0
1 changed files with 6 additions and 6 deletions

View File

@ -51,8 +51,8 @@ public abstract class DigestUtils {
} }
/** /**
* Calculate the MD5 digest of the given stream. This method does * Calculate the MD5 digest of the given stream.
* <strong>not</strong> close the input stream. * <p>This method does <strong>not</strong> close the input stream.
* @param inputStream the InputStream to calculate the digest over * @param inputStream the InputStream to calculate the digest over
* @return the digest * @return the digest
* @since 4.2 * @since 4.2
@ -72,7 +72,7 @@ public abstract class DigestUtils {
/** /**
* Return a hexadecimal string representation of the MD5 digest of the given stream. * Return a hexadecimal string representation of the MD5 digest of the given stream.
* This method does <strong>not</strong> close the input stream. * <p>This method does <strong>not</strong> close the input stream.
* @param inputStream the InputStream to calculate the digest over * @param inputStream the InputStream to calculate the digest over
* @return a hexadecimal digest string * @return a hexadecimal digest string
* @since 4.2 * @since 4.2
@ -94,8 +94,8 @@ public abstract class DigestUtils {
/** /**
* Append a hexadecimal string representation of the MD5 digest of the given * Append a hexadecimal string representation of the MD5 digest of the given
* inputStream to the given {@link StringBuilder}. This method does * inputStream to the given {@link StringBuilder}.
* <strong>not</strong> close the input stream. * <p>This method does <strong>not</strong> close the input stream.
* @param inputStream the inputStream to calculate the digest over * @param inputStream the inputStream to calculate the digest over
* @param builder the string builder to append the digest to * @param builder the string builder to append the digest to
* @return the given string builder * @return the given string builder
@ -108,7 +108,7 @@ public abstract class DigestUtils {
/** /**
* Create a new {@link MessageDigest} with the given algorithm. * Create a new {@link MessageDigest} with the given algorithm.
* Necessary because {@code MessageDigest} is not thread-safe. * <p>Necessary because {@code MessageDigest} is not thread-safe.
*/ */
private static MessageDigest getDigest(String algorithm) { private static MessageDigest getDigest(String algorithm) {
try { try {