Skip to content

Commit ad54ac6

Browse files
authored
Fix message for exception
1 parent 72a108f commit ad54ac6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core-java-modules/core-java/src/main/java/com/baeldung/uuid/UUIDGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static UUID type5UUIDFromBytes(byte[] name) {
6565
try {
6666
md = MessageDigest.getInstance("SHA-1");
6767
} catch (NoSuchAlgorithmException nsae) {
68-
throw new InternalError("MD5 not supported", nsae);
68+
throw new InternalError("SHA-1 not supported", nsae);
6969
}
7070
byte[] bytes = Arrays.copyOfRange(md.digest(name), 0, 16);
7171
bytes[6] &= 0x0f; /* clear version */

0 commit comments

Comments
 (0)