Issue discovered on `src/main/java/org/springframework/data/repository/query/Parameters.java` with `Use method references in lambda`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 38/100
Research direction
Start by reviewing src/main/java/org/springframework/data/repository/query/Parameters.java and the ReplaceLambdaWithMethodReference recipe named in the issue. Compare the example diff with the recipe's behavior and verify that the lambda is reported or transformed to the shown method-reference form.
Written by the indexing model from the issue text.
Description
Problem
Describe the issue you are experiencing.
Expected behavior
Describe what you expected to see.
Example diff
From: src/main/java/org/springframework/data/repository/query/Parameters.java
this.pageableIndex = pageableIndexTemp;
this.sortIndex = sortIndexTemp;
this.dynamicProjectionIndex = dynamicProjectionTemp;
- this.bindable = Lazy.of(() -> (S) this);
+ this.bindable = Lazy.of({{8ba5867a-1e2c-4faf-8e0c-03935957b7a2}}() -> (S) this{{8ba5867a-1e2c-4faf-8e0c-03935957b7a2}});
}
private S getBindable() {
Recipes in example diff:
org.openrewrite.java.cleanup.ReplaceLambdaWithMethodReference
References:
- View original result
- Recipe ID:
org.openrewrite.java.cleanup.ReplaceLambdaWithMethodReference - Recipe Name:
Use method references in lambda - Repository:
spring-projects/spring-data-commons/main - Created at Tue Dec 27 2022 18:47:01 GMT-0500 (Eastern Standard Time)
This issue originally created by @jkschneider on: https://github.com/moderneinc/support-public/issues/16
- Dominant language
- Java
- Stars
- 62
- Forks
- 112
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 40
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openrewrite/rewrite-static-analysis
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 78/100
-
EmptyBlock and RemoveMethodsOnlyCallSuper delete blocks and methods whose only content is a comment Openbug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
openrewrite/rewrite-static-analysis#878 · 4 comments ·
All issues in openrewrite/rewrite-static-analysis
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
spring-projects/spring-modulith#1895 ·