Skip to content

Replace lambda expression with method reference#17772

Open
anukalp2804 wants to merge 1 commit into
apache:masterfrom
anukalp2804:fix/lambda_method_reference
Open

Replace lambda expression with method reference#17772
anukalp2804 wants to merge 1 commit into
apache:masterfrom
anukalp2804:fix/lambda_method_reference

Conversation

@anukalp2804
Copy link
Copy Markdown
Contributor

Description

Resolves SonarCloud rule java:S1612.Refactored lambda expression to method reference for improved readability and cleaner code.

Addresed: #17723

Updated:

keys -> referencedInputs.addAll(keys)
to:
referencedInputs::addAll

This PR has:

  • been self-reviewed.
  • been built locally with mvn spotless:apply.
  • been built locally with mvn clean package -DskipTests.
  • been built locally with mvn -pl iotdb-core -am test -DskipTests.

Resolves : https://sonarcloud.io/project/issues?id=apache_iotdb&pullRequest=17723&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true

No functional changes were introduced.

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