mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-27 01:48:24 +00:00
chore(vulnerability): Comparison of narrow type with wide type in loop condition (#11089)
This commit is contained in:
parent
b544c0a3b0
commit
c572d39bbf
@ -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())
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user