chore(vulnerability): Comparison of narrow type with wide type in loop condition (#11089)

This commit is contained in:
Pinaki Bhattacharjee 2024-08-03 18:32:01 +05:30 committed by GitHub
parent b544c0a3b0
commit c572d39bbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public class FieldExtractor {
} else {
List<Object> valueList = (List<Object>) value.get();
// If the field is a nested list of values, flatten it
for (int i = 0; i < numArrayWildcards - 1; i++) {
for (long i = 0; i < numArrayWildcards - 1; i++) {
valueList =
valueList.stream()
.flatMap(v -> ((List<Object>) v).stream())

View File

@ -61,7 +61,7 @@ public class IngestDataPlatformInstancesStep implements BootstrapStep {
long numEntities = _migrationsDao.countEntities();
int start = 0;
while (start < numEntities) {
while (start < (int) numEntities) {
log.info(
"Reading urns {} to {} from the aspects table to generate dataplatform instance aspects",
start,