Closed vlsi closed 11 months ago
rewrite-recipe-bom:2.4.1 org.openrewrite.rewrite.gradle.plugin:6.4.3
./gradlew rewriteRun, see https://github.com/pgjdbc/pgjdbc/pull/2979
./gradlew rewriteRun
/** * @see java.sql.Connection#createArrayOf(String, Object[]) */ voit test() { }
The code should be left intact.
Every execution adds a space before Object[] The code becomes like
Object[]
See https://github.com/pgjdbc/pgjdbc/blob/9cf9f36a1d3a1edd9286721f9c0b9cfa9e8422e3/pgjdbc/src/main/java/org/postgresql/PGConnection.java#L43
PS. It should probably be moved to rewrite-static-analysis
The cause appears to be the org.openrewrite.java.format.MethodParamPad recipe.
org.openrewrite.java.format.MethodParamPad
This issue has been fixed, but won't be immediately available on https://app.moderne.io/. Thanks for reporting!
What version of OpenRewrite are you using?
rewrite-recipe-bom:2.4.1 org.openrewrite.rewrite.gradle.plugin:6.4.3
How are you running OpenRewrite?
./gradlew rewriteRun
, see https://github.com/pgjdbc/pgjdbc/pull/2979What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
The code should be left intact.
What did you see instead?
Every execution adds a space before
Object[]
The code becomes likeSee https://github.com/pgjdbc/pgjdbc/blob/9cf9f36a1d3a1edd9286721f9c0b9cfa9e8422e3/pgjdbc/src/main/java/org/postgresql/PGConnection.java#L43
PS. It should probably be moved to rewrite-static-analysis