fixed : simplify children() with safe casting and null handling#3327
fixed : simplify children() with safe casting and null handling#3327ADITYA-KUMAR-2358 wants to merge 3 commits intoiluwatar:masterfrom
Conversation
ADITYA-KUMAR-2358
commented
Oct 2, 2025
- Simplified logic by removing redundant Stream.ofNullable().findAny().stream()
- Added instanceof check to avoid ClassCastException
- Return Stream.empty() when key is null or not a List
- Added comments to understand the logic of changes made
|
⏳ Analyzing changes in this PR... ⏳ This might take a few minutes, please wait 📥 CommitsAnalyzing changes from base ( 📁 Files being considered (2)🔄 abstract-document/src/main/java/com/iluwatar/abstractdocument/AbstractDocument.java (3 hunks) autogenerated by presubmit.ai |
|
|
Hi maintainers, I’ve raised a PR #3327 related to this issue as part of Hacktoberfest 2025. If it looks good, I’d be grateful if you could review and merge it. If merging isn’t possible right now, could you please add the “hacktoberfest-accepted” label to the PR so it can count towards my Hacktoberfest contributions? Thanks a lot for your time and support! |
|
This PR is stale because it has been open 60 days with no activity. |


