You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the smallest, simplest way to reproduce the problem?
foo.properties containing
key==value
What is the full stack trace of any errors you encountered?
[WARNING] There were problems parsing foo.properties
[WARNING] java.lang.IllegalStateException: foo.properties is not print idempotent.
... (skipped diff header output)
-key==value
+key=value
...
org.openrewrite.Parser.requirePrintEqualsInput(Parser.java:52)
I checked the Javadoc of Properties and an equals sign immediately after the first equals should be considered part of the value. Also when loading "key==value" into Java properties, it returns "=value" when asking for "key".
* Correctly parse property values starting with delimiter character
Fixes#4026.
* avoid arithmetic on state operations
Avoid arithmetic operations with the state variable and rather assign
the new value. Also convert to enum to make the states more easy to
understand for the next author.
What version of OpenRewrite are you using?
I am using
What is the smallest, simplest way to reproduce the problem?
foo.properties containing
key==value
What is the full stack trace of any errors you encountered?
I checked the Javadoc of Properties and an equals sign immediately after the first equals should be considered part of the value. Also when loading "key==value" into Java properties, it returns "=value" when asking for "key".
Are you interested in contributing a fix to OpenRewrite?
Not for this one.
The text was updated successfully, but these errors were encountered: