Closed dukbong closed 2 months ago
Thank you for the PR, @dukbong .
Please see the comments.
@harawata I understand your concern about wanting to clarify the condition, but upon further reflection, it seems there's no need to change it.
List<PendingRelation> parents = pendingRelations.get(parentKey);
if (parents != null && !parents.isEmpty()) {
for (PendingRelation parent : parents) {
if (rowValue != null) {
linkObjects(parent.metaObject, parent.propertyMapping, rowValue);
}
}
}
I wanted to make the condition clearer like this, but upon reconsideration, I'm not sure if it's really necessary. I'll make sure to think more carefully before submitting PRs in the future.
This PR aims to enhance readability and reliability by utilizing the isEmpty method generated from the ResultLoaderMap. By considering not only null but also whether the length is zero in the context flow, it prevents unnecessary advancement to the next block.