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:
Hangga Aji Sayekti 2023-11-02 09:40:04 +07:00 committed by GitHub
parent 9fe75192ec
commit f25f06795b
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {