eclipse-viatra / org.eclipse.viatra

Main components of the VIATRA framework
https://eclipse.dev/viatra
Eclipse Public License 2.0
0 stars 1 forks source link

Simplify annotation parameter list syntax #104

Open eclipse-viatra-bot opened 4 months ago

eclipse-viatra-bot commented 4 months ago

| --- | --- | | 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 ...)