Skip to content

[Misc] Replace lambdas with method references (SonarCloud java:S1612)#5807

Merged
vmassol merged 1 commit into
masterfrom
claude/vigilant-dirac-s6cftj
Jul 11, 2026
Merged

[Misc] Replace lambdas with method references (SonarCloud java:S1612)#5807
vmassol merged 1 commit into
masterfrom
claude/vigilant-dirac-s6cftj

Conversation

@vmassol

@vmassol vmassol commented Jul 10, 2026

Copy link
Copy Markdown
Member

Summary

Fixes 25 SonarCloud java:S1612 issues ("Replace this lambda with a method reference") across four modules:

  • xwiki-platform-store-transaction (16, test code) — () -> this.testCase.run()this.testCase::run, etc.
  • xwiki-platform-store-filesystem (3, test code)
  • xwiki-platform-configuration-default (3) — including qualified Outer.super::method references
  • xwiki-platform-notifications-filters-api (3) — x -> x instanceof FooFoo.class::isInstance and a StringValueNode::new constructor reference

All conversions are behaviour-preserving.

SonarCloud issues

Test plan

  • mvn clean install of the four modules passes (Checkstyle + Spoon included).

🤖 Generated with Claude Code


Generated by Claude Code

* Convert 25 lambda expressions to equivalent method references across
  the store-transaction, store-filesystem, configuration-default and
  notifications-filters-api modules, as flagged by SonarCloud rule
  java:S1612.

Co-Authored-By: Vincent Massol <vincent@massol.net>
@vmassol vmassol added the llm-agent To be used for PRs created autonomously by LLM agents. label Jul 10, 2026 — with Claude
@vmassol vmassol self-assigned this Jul 10, 2026
@vmassol vmassol merged commit 2e129ed into master Jul 11, 2026
3 checks passed
@vmassol vmassol deleted the claude/vigilant-dirac-s6cftj branch July 11, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

llm-agent To be used for PRs created autonomously by LLM agents.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant