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

Xintong Song updated FLINK-35148:
---------------------------------
    Issue Type: Technical Debt  (was: Improvement)

> Improve InstantiationUtil for checking nullary public constructor
> -----------------------------------------------------------------
>
>                 Key: FLINK-35148
>                 URL: https://issues.apache.org/jira/browse/FLINK-35148
>             Project: Flink
>          Issue Type: Technical Debt
>          Components: API / Core
>            Reporter: Mingliang Liu
>            Assignee: Mingliang Liu
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.20.0
>
>
> {{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