Skip to content

Commit 292b4e5

Browse files
authored
style: resolve IMC_IMMATURE_CLASS_COLLECTION_RETURN (#6256)
1 parent 3b9bdcc commit 292b4e5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/com/thealgorithms/sorts/FlashSortTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import java.lang.reflect.Method;
77
import java.util.ArrayList;
8-
import java.util.Collection;
98
import java.util.List;
109
import org.junit.jupiter.api.DynamicTest;
1110
import org.junit.jupiter.api.Test;
@@ -47,7 +46,7 @@ public void testCustomConstructorInvalidRatio(double ratio) {
4746
}
4847

4948
@TestFactory
50-
public Collection<DynamicTest> dynamicTestsForSorting() {
49+
public List<DynamicTest> dynamicTestsForSorting() {
5150
List<DynamicTest> dynamicTests = new ArrayList<>();
5251
double[] ratios = {0.1, 0.2, 0.5, 0.9};
5352

@@ -60,7 +59,7 @@ public Collection<DynamicTest> dynamicTestsForSorting() {
6059
return dynamicTests;
6160
}
6261

63-
private Collection<DynamicTest> createDynamicTestsForRatio(double ratio) {
62+
private List<DynamicTest> createDynamicTestsForRatio(double ratio) {
6463
List<DynamicTest> dynamicTests = new ArrayList<>();
6564
for (TestMethod testMethod : getTestMethodsFromSuperClass()) {
6665
dynamicTests.add(DynamicTest.dynamicTest("Ratio: " + ratio + " - Test: " + testMethod.name(), testMethod.executable()));

0 commit comments

Comments
 (0)