Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork27.2k
fixed : simplify children() with safe casting and null handling#3327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Conversation
ADITYA-KUMAR-2358 commentedOct 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
github-actionsbot commentedOct 2, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
⏳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 bypresubmit.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! |