Skip to content

Commit a1ba64c

Browse files
committed
Fix nullability annotation in RecordArguments
1 parent 34e6627 commit a1ba64c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

junit-jupiter-params/src/testFixtures/java/org/junit/jupiter/params/provider/RecordArguments.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212

1313
import java.util.Arrays;
1414

15+
import org.jspecify.annotations.Nullable;
1516
import org.junit.platform.commons.support.ReflectionSupport;
1617

1718
public interface RecordArguments extends Arguments {
1819

1920
@Override
20-
default Object[] get() {
21+
default @Nullable Object[] get() {
2122
return Arrays.stream(getClass().getRecordComponents()) //
2223
.map(component -> ReflectionSupport.invokeMethod(component.getAccessor(), this)) //
2324
.toArray();

0 commit comments

Comments
 (0)