Skip to content

Commit 6a1afb0

Browse files
committed
Fixed linter error
1 parent dc608a4 commit 6a1afb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/thealgorithms/searches/SentinelLinearSearchTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void testSentinelLinearSearchLargeArrayNotFound() {
134134
void testSentinelLinearSearchRandomArray() {
135135
SentinelLinearSearch sentinelLinearSearch = new SentinelLinearSearch();
136136
Random random = new Random();
137-
Integer[] array = random.ints(0, 1000).distinct().limit(1000).boxed().toArray(Integer[] ::new);
137+
Integer[] array = random.ints(0, 1000).distinct().limit(1000).boxed().toArray(Integer[]::new);
138138
Integer key = array[random.nextInt(array.length)]; // Key should be in the array
139139
assertEquals(java.util.Arrays.asList(array).indexOf(key), sentinelLinearSearch.find(array, key), "The index of the found element should match.");
140140
}

0 commit comments

Comments
 (0)