[ 
https://issues.apache.org/jira/browse/FLINK-35148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated FLINK-35148:
-----------------------------------
    Labels: pull-request-available  (was: )

> Improve InstantiationUtil for checking nullary public constructor
> -----------------------------------------------------------------
>
>                 Key: FLINK-35148
>                 URL: https://issues.apache.org/jira/browse/FLINK-35148
>             Project: Flink
>          Issue Type: Improvement
>          Components: API / Core
>    Affects Versions: 1.19.0, 1.18.1
>            Reporter: Mingliang Liu
>            Priority: Minor
>              Labels: pull-request-available
>
> {{InstantiationUtil#hasPublicNullaryConstructor}} checks whether the given 
> class has a public nullary constructor. The implementation can be improved a 
> bit: the `Modifier#isPublic` check within the for-loop can be skipped as the 
> {{Class#getConstructors()}} only returns public constructors.
> We can also add a negative unit test for this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to