Skip to content

Commit 85c856f

Browse files
committed
Fix
1 parent 2498b9e commit 85c856f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ void testNegativeK() {
9797
* Test with null array.
9898
*/
9999
@Test
100-
@SuppressWarnings("NullAway")
101100
void testNullArray() {
102-
long result = MaximumSumOfDistinctSubarraysWithLengthK.maximumSubarraySum(3, (int[]) null);
101+
int[] nullArray = null;
102+
long result = MaximumSumOfDistinctSubarraysWithLengthK.maximumSubarraySum(3, new int[][] {nullArray}[0]);
103103
assertEquals(0L, result);
104104
}
105105

0 commit comments

Comments
 (0)