[ 
https://issues.apache.org/jira/browse/NIFI-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17806968#comment-17806968
 ] 

ASF subversion and git services commented on NIFI-12573:
--------------------------------------------------------

Commit 4588c6c37e023c78870dbd6ceb1e6b9738e76471 in nifi's branch 
refs/heads/main from EndzeitBegins
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=4588c6c37e ]

NIFI-12573 Improved support for Enums in PropertyDescriptor.Builder

NIFI-12574 Add clearDefaultValue to PropertyDescriptor.Builder

This closes #8211

Signed-off-by: David Handermann <exceptionfact...@apache.org>


> 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: 50m
>  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)

Reply via email to