Skip to content

Commit 65f0722

Browse files
Marcono1234simonresch
authored andcommitted
chore: improve ArgumentsMutatorFuzzTest
Remove `null` check because parameter is annotated with `NotNull`
1 parent 9377576 commit 65f0722

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

selffuzz/src/test/java/com/code_intelligence/selffuzz/mutation/ArgumentsMutatorFuzzTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,11 @@ void fuzzListOfMaps(@WithSize(max = 4) Map<String, Integer> nullableMap) {
112112

113113
@SelfFuzzTest
114114
void fuzzListOfSets(@WithSize(max = 10) @NotNull Set<@NotNull Integer> setWithSize) {
115-
if (setWithSize != null) {
116-
assertThat(setWithSize.size()).isAtMost(10);
117-
}
115+
assertThat(setWithSize.size()).isAtMost(10);
118116
}
119117

120118
@SelfFuzzTest
121-
void fuzzListOfLists(List<@NotNull List<String>> nullableMap, List<List<Integer>> nullableList) {}
119+
void fuzzListOfLists(List<@NotNull List<String>> list, List<List<Integer>> nullableList) {}
122120

123121
@SelfFuzzTest
124122
void fuzzPrimitiveArrays(

0 commit comments

Comments
 (0)