dstutz opened a new issue, #6573:
URL: https://github.com/apache/netbeans/issues/6573
### Apache NetBeans version
Apache NetBeans 19
### What happened
If you use the compact constructor of a record and you have 0 or 1 record
parameters, NB formatting will put 1 space but from 2+ it will put the number
of spaces that you have parameters.
### How to reproduce
Format this Java:
```
public sealed interface Example {
public record TwoSpaces(String one, String two) implements Example {
public TwoSpaces {
^^
}
}
public record ThreeSpaces(String one, String two, String three)
implements Example {
public ThreeSpaces {
^^^
}
}
public record FourSpaces(String one, String two, String three, String
four) implements Example {
public FourSpaces {
^^^^
}
}
}
```
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 10 64
### JDK
Temurin jdk-17.0.7.7-hotspot
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists