Files
Bartek Paciaandintellij-monorepo-bot f419dbbb08 [java-inspection] IDEA-251700 ClassCanBeRecord: support converting classes with many constructors
#IDEA-251700 fixed

Merge-request: IJ-MR-160901
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com>

GitOrigin-RevId: f0a1224846e203a3dc6638270d665354dcf14fb4
2025-05-27 06:53:38 +00:00

10 lines
444 B
Java

// "Convert to record class" "true-preview"
/// JLS 8.10.1 says:
///
/// A record component may be a variable arity record component, indicated by an ellipsis following the type.
/// At most one variable arity record component is permitted for a record class.
/// It is a compile-time error if a variable arity record component appears anywhere in the list of record components except the last position.
record R(int single, int... array) {
}