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
Indentation to match the same indentation observed inside classes
Spaces after commas in the record's definition
Spaces before { at the end of of declaration and methods
Spaces before and after operators like ||, ==, >.
Expected behavior
When the record is formatted using 2.24.1, we observe the correct formatting. But once we upgraded to 2.25.0, I've observed these differences. I've reviewed all formatter configuration settings that include "record" in their names, setting their values as follows:
I ran a test on record class by putting your class into the build. It formatted without any issue. Our tests run 2 times to shake out any after affects, it worked fine on both so not sure what the issue is you are having.
Describe the bug
After upgrading to 2.25.0, all Java
record
types are being reformatted.For example, given the following record declaration:
After running the formatted, the output yields:
What is being lost here are the following:
{
at the end of of declaration and methods||
,==
,>
.Expected behavior
When the record is formatted using 2.24.1, we observe the correct formatting. But once we upgraded to 2.25.0, I've observed these differences. I've reviewed all formatter configuration settings that include "record" in their names, setting their values as follows:
Despite those settings, the formatting with 2.25.0 is completely different than 2.24.1.
After performing a
git bisect
, the offending commit is df94a38 but these changes do not seem related to Javarecord
types.The text was updated successfully, but these errors were encountered: