Steps
- Have a snippet like these somewhere in your code:
- Run cleanthat
Expected
Cleanthat either does not print anything, or turns them into:
Actual
Cleanthat does not change the code, but prints one of the below messages:
UnnecessaryLambdaEnclosingParameters is turning `(final String x) -> true` into `final String x -> true`
UnnecessaryLambdaEnclosingParameters is turning `(String x) -> true` into `String x -> true`
Notes
Actually doing the printed change would cause a compile error.
Versions:
- Java: 21
- Spotless: 2.46.1
- Cleanthat: 2.24
Steps
Expected
Cleanthat either does not print anything, or turns them into:
Actual
Cleanthat does not change the code, but prints one of the below messages:
Notes
Actually doing the printed change would cause a compile error.
Versions: