From 14ac63c0fa2eba9a8745e88592d3fa8220c3f519 Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Wed, 5 Nov 2025 17:14:40 +0100 Subject: [PATCH 1/2] docs: update `WithSize` Javadoc to mention `Set` --- .../code_intelligence/jazzer/mutation/annotation/WithSize.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/code_intelligence/jazzer/mutation/annotation/WithSize.java b/src/main/java/com/code_intelligence/jazzer/mutation/annotation/WithSize.java index 0a78ae7aa..6dd07c6a4 100644 --- a/src/main/java/com/code_intelligence/jazzer/mutation/annotation/WithSize.java +++ b/src/main/java/com/code_intelligence/jazzer/mutation/annotation/WithSize.java @@ -29,7 +29,7 @@ import java.util.Set; /** - * Generates a {@link List} or {@link Map} with the specified size. + * Generates a {@link List}, {@link Set} or {@link Map} with the specified size. * * @see WithLength * @see WithUtf8Length From 1af53dacef90533a2204a07e1353158013687f4a Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Wed, 5 Nov 2025 17:16:59 +0100 Subject: [PATCH 2/2] chore: improve `ArgumentsMutatorFuzzTest` Remove `null` check because parameter is annotated with `NotNull` --- .../selffuzz/mutation/ArgumentsMutatorFuzzTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/selffuzz/src/test/java/com/code_intelligence/selffuzz/mutation/ArgumentsMutatorFuzzTest.java b/selffuzz/src/test/java/com/code_intelligence/selffuzz/mutation/ArgumentsMutatorFuzzTest.java index 06b1df4a3..f758644cd 100644 --- a/selffuzz/src/test/java/com/code_intelligence/selffuzz/mutation/ArgumentsMutatorFuzzTest.java +++ b/selffuzz/src/test/java/com/code_intelligence/selffuzz/mutation/ArgumentsMutatorFuzzTest.java @@ -112,13 +112,11 @@ void fuzzListOfMaps(@WithSize(max = 4) Map nullableMap) { @SelfFuzzTest void fuzzListOfSets(@WithSize(max = 10) @NotNull Set<@NotNull Integer> setWithSize) { - if (setWithSize != null) { - assertThat(setWithSize.size()).isAtMost(10); - } + assertThat(setWithSize.size()).isAtMost(10); } @SelfFuzzTest - void fuzzListOfLists(List<@NotNull List> nullableMap, List> nullableList) {} + void fuzzListOfLists(List<@NotNull List> list, List> nullableList) {} @SelfFuzzTest void fuzzPrimitiveArrays(