Skip to content

Commit 1cf4d19

Browse files
committed
Change AssertionError to IllegalStateException
1 parent 799159f commit 1cf4d19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ public final void add(final byte[] data, final int offset, final int length) {
10541054
k = orBytes(unprocessed[0], unprocessed[1], unprocessed[2], data[offset]);
10551055
break;
10561056
default:
1057-
throw new AssertionError("Unprocessed length should be 1, 2, or 3: " + unprocessedLength);
1057+
throw new IllegalStateException("Unprocessed length should be 1, 2, or 3: " + unprocessedLength);
10581058
}
10591059
hash = mix32(k, hash);
10601060
// Update the offset and length

0 commit comments

Comments
 (0)