Thanks for confirming. There is no need to organize members on a record but I did it on a package level and thankfully the record was open so I was able to notice the swap. :)
Den lör 1 feb. 2025 kl 21:09 skrev Michael Bien <mbie...@gmail.com>: > I don't think this is a regression. added it to the reprorepo > > > https://github.com/mbien/nb-reprorepo/blob/302ef1cc3cb0f829dc97dcf6843c270c4170364c/tinybugs/src/main/java/bugs/organizerecordmembers/OrderMembersRecord.java#L5 > > but still worth fixing, formatter should not refactor code ;) > > -mbien > > On 01.02.25 19:51, Patrik Karlström wrote: > > When I organize members of a record like > > public record Settings(Color borderColor, double borderSize, int width, > int > > height) { > > it changes to > > public record Settings(Color borderColor, double borderSize, int height, > > int width) { > > > > notice the swap of width & height. > > > > This only happens when a record is in its own file, as a nested object, > no > > swapping occurs. > > > > I don't see this behavior in NB24. > > > > /Patrik > > > >