Skip to content

Commit 014827c

Browse files
Potential fix for code scanning alert no. 18: Implicit narrowing conversion in compound assignment
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent f31e87b commit 014827c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

msal4j-persistence-extension/src/test/java/com/microsoft/aad/msal4jextensions/CacheLockTestBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void validateLockUsageIntervals(int expected_size) throws IOException {
108108

109109
list.sort(Comparator.comparingLong(a -> a[0]));
110110

111-
int sum = 0;
111+
long sum = 0L;
112112
Long[] prev = null;
113113
for (Long[] interval : list) {
114114
Assert.assertTrue(interval[0] <= interval[1]);

0 commit comments

Comments
 (0)