Fix CodeQL Code scanning alerts

Implicit narrowing conversion in compound assignment
This commit is contained in:
Gary Gregory 2024-07-06 15:03:48 -04:00
parent c2b9a51f8c
commit 90a5e8ad37
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ public class DurationFormatUtils {
end.setTime(new Date(endMillis)); end.setTime(new Date(endMillis));
// initial estimates // initial estimates
int milliseconds = end.get(Calendar.MILLISECOND) - start.get(Calendar.MILLISECOND); long milliseconds = end.get(Calendar.MILLISECOND) - start.get(Calendar.MILLISECOND);
int seconds = end.get(Calendar.SECOND) - start.get(Calendar.SECOND); int seconds = end.get(Calendar.SECOND) - start.get(Calendar.SECOND);
int minutes = end.get(Calendar.MINUTE) - start.get(Calendar.MINUTE); int minutes = end.get(Calendar.MINUTE) - start.get(Calendar.MINUTE);
int hours = end.get(Calendar.HOUR_OF_DAY) - start.get(Calendar.HOUR_OF_DAY); int hours = end.get(Calendar.HOUR_OF_DAY) - start.get(Calendar.HOUR_OF_DAY);