Skip to content

Conversation

ADITYA-KUMAR-2358
Copy link

  • 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

Copy link

github-actions bot commented Oct 2, 2025

Analyzing changes in this PR...

This might take a few minutes, please wait

📥 Commits

Analyzing changes from base (ede37bd) to latest commit (cb1a4d9):

  • cb1a4d9: Indentation and Added instanceof checks to prevent ClassCastException
  • e0b9df4: applied spotless formatting"
  • 06ab653: fix: simplify children() with safe casting and null handling
📁 Files being considered (2)

🔄 abstract-document/src/main/java/com/iluwatar/abstractdocument/AbstractDocument.java (3 hunks)
➕ tyle apply spotless formatting (2 hunks)


autogenerated by presubmit.ai

Copy link

sonarqubecloud bot commented Oct 2, 2025

@ADITYA-KUMAR-2358
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant