| --- | --- |
| Bugzilla Link | 545551 |
| Status | NEW |
| Importance | P3 enhancement |
| Reported | Mar 19, 2019 10:57 EDT |
| Modified | Mar 19, 2019 10:57 EDT |
| Version | 2.1.1 |
| Reporter | Zoltan Ujhelyi |
Description
When using annotations with list-typed parameters, we could support a simplified syntax for single-valued collections that leaves the curly braces out. This is important for annotation parameters like key attribute of @Constraint, where we usually have a single parameter defined, but occasionally we'd like to use multiple values.
E.g. @Constraint(key = {a} ...) could become to @Constraint(key = a ...)
| --- | --- | | Bugzilla Link | 545551 | | Status | NEW | | Importance | P3 enhancement | | Reported | Mar 19, 2019 10:57 EDT | | Modified | Mar 19, 2019 10:57 EDT | | Version | 2.1.1 | | Reporter | Zoltan Ujhelyi |
Description
When using annotations with list-typed parameters, we could support a simplified syntax for single-valued collections that leaves the curly braces out. This is important for annotation parameters like key attribute of @Constraint, where we usually have a single parameter defined, but occasionally we'd like to use multiple values.
E.g. @Constraint(key = {a} ...) could become to @Constraint(key = a ...)