uima-uimaj icon indicating copy to clipboard operation
uima-uimaj copied to clipboard

Varargs for description class setters

Open reckart opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. In many places in the UIMA component description classes, setters accept arrays of values. This makes code calling these setters unnecessarily verbose.

Describe the solution you'd like Where possible, the setters should be change to accept a variadic argument instead.

reckart avatar Sep 18 '23 10:09 reckart

Although the japicmp does not seem to complain about this change, there is a source incompatibility here.

The meaning of setFoo(null); would change from set foo to null to set foo to [null]...

This change should probably only be introduced in a major version...

reckart avatar Sep 18 '23 10:09 reckart