Skip to content

Commit 0b07ee3

Browse files
committed
Javadoc
1 parent f9018bd commit 0b07ee3

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/main/java/org/apache/commons/codec/digest/DigestUtils.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public static MessageDigest getShake256_512Digest() {
401401
}
402402

403403
/**
404-
* Reads through a byte array and return a generalized Git blob identifier
404+
* Reads through a byte array and return a generalized Git blob identifier.
405405
*
406406
* <p>The identifier is computed in the way described by the
407407
* <a href="https://www.swhid.org/swhid-specification/v1.2/5.Core_identifiers/#52-contents">SWHID contents identifier</a>, but it can use any hash
@@ -421,7 +421,7 @@ public static byte[] gitBlob(final MessageDigest messageDigest, final byte[] dat
421421
}
422422

423423
/**
424-
* Reads through a byte array and return a generalized Git blob identifier
424+
* Reads through a byte array and return a generalized Git blob identifier.
425425
*
426426
* <p>The identifier is computed in the way described by the
427427
* <a href="https://www.swhid.org/swhid-specification/v1.2/5.Core_identifiers/#52-contents">SWHID contents identifier</a>, but it can use any hash
@@ -431,9 +431,9 @@ public static byte[] gitBlob(final MessageDigest messageDigest, final byte[] dat
431431
*
432432
* @param messageDigest The MessageDigest to use (for example SHA-1).
433433
* @param data Data to digest.
434-
* @param options Options how to open the file
434+
* @param options Options how to open the file.
435435
* @return A generalized Git blob identifier.
436-
* @throws IOException On error accessing the file
436+
* @throws IOException On error accessing the file.
437437
* @since 1.22.0
438438
*/
439439
public static byte[] gitBlob(final MessageDigest messageDigest, final Path data, final OpenOption... options) throws IOException {
@@ -451,16 +451,16 @@ private static byte[] gitPrefix(final String prefix, final long dataSize) {
451451
}
452452

453453
/**
454-
* Returns a generalized Git tree identifier
454+
* Returns a generalized Git tree identifier.
455455
*
456456
* <p>The identifier is computed in the way described by the
457457
* <a href="https://www.swhid.org/swhid-specification/v1.2/5.Core_identifiers/#53-directories">SWHID directory identifier</a>, but it can use any hash
458458
* algorithm.</p>
459459
*
460460
* <p>When the hash algorithm is SHA-1, the identifier is identical to Git tree identifier and SWHID directory identifier.</p>
461461
*
462-
* @param messageDigest The MessageDigest to use (for example SHA-1)
463-
* @param entries The directory entries
462+
* @param messageDigest The MessageDigest to use (for example SHA-1).
463+
* @param entries The directory entries.
464464
* @return A generalized Git tree identifier.
465465
*/
466466
static byte[] gitTree(final MessageDigest messageDigest, final Collection<GitDirectoryEntry> entries) {
@@ -476,7 +476,7 @@ static byte[] gitTree(final MessageDigest messageDigest, final Collection<GitDir
476476
}
477477

478478
/**
479-
* Reads through a byte array and return a generalized Git tree identifier
479+
* Reads through a byte array and return a generalized Git tree identifier.
480480
*
481481
* <p>The identifier is computed in the way described by the
482482
* <a href="https://www.swhid.org/swhid-specification/v1.2/5.Core_identifiers/#53-directories">SWHID directory identifier</a>, but it can use any hash
@@ -486,9 +486,9 @@ static byte[] gitTree(final MessageDigest messageDigest, final Collection<GitDir
486486
*
487487
* @param messageDigest The MessageDigest to use (for example SHA-1).
488488
* @param data Data to digest.
489-
* @param options Options how to open the file
489+
* @param options Options how to open the file.
490490
* @return A generalized Git tree identifier.
491-
* @throws IOException On error accessing the file
491+
* @throws IOException On error accessing the file.
492492
* @since 1.22.0
493493
*/
494494
public static byte[] gitTree(final MessageDigest messageDigest, final Path data, final OpenOption... options) throws IOException {

0 commit comments

Comments
 (0)