Open koppor opened 1 week ago
hi @koppor ! I'm looking at the original classes but not seeing the same input there: https://github.com/JabRef/jabref/blob/ebca33e74ee674515e171036d11edc36e8ddc34e/src/main/java/org/jabref/logic/exporter/GroupSerializer.java#L29-L40
Are there additional changed out of view from the diff above that would explain why changes are reported in the first place?
For both cases I suppose the best way to see these resolved is to replicate them in a minimal draft PR unit test, and then from there ensure the prefix is retained for the ChainStringBuilderAppendCalls
case for instance.
The classes stem from https://github.com/koppor/jabref/pull/661.
I will try to create an MWE though.
What problem are you trying to solve?
I want to use Google Java Format (AOSP) together with OpenRewrite
Describe the solution you'd like
OpenRewrite should not write files if only whitespace change.
Have you considered any alternatives or workarounds?
Disabling rules.
Additional context
org.openrewrite.staticanalysis.ChainStringBuilderAppendCalls
:org.openrewrite.java.logging.slf4j.ParameterizedLogging
(For this, I can do a work-around by using single-line strings only)
Are you interested in contributing this feature to OpenRewrite?