Update core-java-modules/core-java-uuid/src/test/java/com/baeldung/uuid/UUIDPositiveLongGeneratorUnitTest.java
Simplify the throws clause Co-authored-by: Liam Williams <liam.williams@zoho.com>
This commit is contained in:
parent
9fe75192ec
commit
f25f06795b
|
@ -38,7 +38,7 @@ public class UUIDPositiveLongGeneratorUnitTest {
|
|||
}
|
||||
|
||||
|
||||
private void collisionCheck(Method method) throws InvocationTargetException, IllegalAccessException {
|
||||
private void collisionCheck(Method method) throws Exception {
|
||||
Set<Long> uniqueValues = new HashSet<>();
|
||||
int collisions = 0;
|
||||
for (int i = 0; i < n; i++) {
|
||||
|
|
Loading…
Reference in New Issue