Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
ADITYA-KUMAR-2358 wants to merge3 commits intoiluwatar:master
base:master
Choose a base branch
Loading
fromADITYA-KUMAR-2358:master

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

@github-actionsGitHub Actions
Copy link

github-actionsbot commentedOct 2, 2025
edited
Loading

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 bypresubmit.ai

@sonarqubecloudSonarQubeCloud
Copy link

@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 freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@ADITYA-KUMAR-2358

[8]ページ先頭

©2009-2025 Movatter.jp