[ https://issues.apache.org/jira/browse/NIFI-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Handermann updated NIFI-12573: ------------------------------------ Status: Patch Available (was: Open) > Improve support for Enum values in PropertyDescriptor.Builder > ------------------------------------------------------------- > > Key: NIFI-12573 > URL: https://issues.apache.org/jira/browse/NIFI-12573 > Project: Apache NiFi > Issue Type: Improvement > Components: Core Framework > Reporter: endzeit > Assignee: endzeit > Priority: Minor > Time Spent: 10m > Remaining Estimate: 0h > > The {{PropertyDescriptor.Builder}} provides several methods accepting Enum > values. > However, some of those are restricted to implement {{DescribedValue}} while > other do not. > This limitation should be lifted to provide support for both Enum that > implement {{DescribedValue}} and those that do not. > Additionally, parameters should not be restricted to {{AllowableValue}} but > rather the underlying interface {{DescribedValue}}. > This affected the following methods: > {code:java} > <E extends Enum<E> & DescribedValue> Builder allowableValues(final Class<E> > enumClass) > -> <E extends Enum<E>> Builder allowableValues(final Class<E> enumClass) > public <E extends Enum<E> & DescribedValue> Builder allowableValues(final > EnumSet<E> enumValues) > -> public <E extends Enum<E>> Builder allowableValues(final EnumSet<E> > enumValues) > public Builder allowableValues(final AllowableValue... values) > -> public Builder allowableValues(final DescribedValue... values) > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)