Skip to content

Commit 02cd2f6

Browse files
committed
Polishing
1 parent 0ad7fae commit 02cd2f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

junit-jupiter-params/src/main/java/org/junit/jupiter/params/EvaluatedArgumentSet.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import org.junit.jupiter.api.Named;
1919
import org.junit.jupiter.params.provider.Arguments;
20+
import org.junit.jupiter.params.provider.Arguments.ArgumentSet;
2021
import org.junit.platform.commons.util.Preconditions;
2122

2223
/**
@@ -87,8 +88,8 @@ private static Object[] dropSurplus(Object[] arguments, int newLength) {
8788
}
8889

8990
private static Optional<String> determineName(Arguments arguments) {
90-
if (arguments instanceof Arguments.ArgumentSet) {
91-
return Optional.of(((Arguments.ArgumentSet) arguments).getName());
91+
if (arguments instanceof ArgumentSet) {
92+
return Optional.of(((ArgumentSet) arguments).getName());
9293
}
9394
return Optional.empty();
9495
}
@@ -98,4 +99,5 @@ private static Object[] extractFromNamed(Object[] arguments, Function<Named<?>,
9899
.map(argument -> argument instanceof Named ? mapper.apply((Named<?>) argument) : argument) //
99100
.toArray();
100101
}
102+
101103
}

0 commit comments

Comments
 (0)