Skip to content

Commit 6d2efa4

Browse files
committed
Fix
1 parent cf2c02a commit 6d2efa4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/com/thealgorithms/others/MaximumSumOfDistinctSubarraysWithLengthKTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ void testNegativeK() {
9898
*/
9999
@Test
100100
void testNullArray() {
101-
int[] nullArray = null;
102-
long result = MaximumSumOfDistinctSubarraysWithLengthK.maximumSubarraySum(3, nullArray);
101+
long result = MaximumSumOfDistinctSubarraysWithLengthK.maximumSubarraySum(3, (int[]) null);
103102
assertEquals(0L, result);
104103
}
105104

0 commit comments

Comments
 (0)