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
/pmdPublic

[java] Add new rule SimplifyStreamExpression#5725

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

Draft
oowekyala wants to merge4 commits intopmd:main
base:main
Choose a base branch
Loading
fromoowekyala:issue5723-new-rule-simplify-stream

Conversation

oowekyala
Copy link
Member

Describe the PR

Add a new rule for simplifiable stream call chains, which I mean to support more patterns in the future. I added a couple to show that it's easy enough.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@oowekyalaoowekyala added the a:new-ruleProposal to add a new built-in rule labelMay 8, 2025
@github-actionsGitHub Actions
Copy link

github-actionsbot commentedMay 8, 2025
edited
Loading

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 169 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.

Regression Tester Report

This is important for streams especially, becausethey are often in long call chains split overmultiple lines. It makes no sense to report violationsat the very start of the call chain
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
a:new-ruleProposal to add a new built-in rule
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[java] New rule: AvoidOutdatedUsage - Use modern Java collections API (toList() instead of collect(Collectors.toList()))
1 participant
@oowekyala

[8]ページ先頭

©2009-2025 Movatter.jp