Avoid cloning overhead from Method.getParameterTypes()

Description

Hi,

I just noticed that a couple of places still make use of Method.getParameterTypes().length which could be replaced by Method.getParameterCount() since Java 8. By that we avoid unnecessary cloning overhead.

PR is attached.

Cheers,
Christoph

Environment

None

Activity

Show:
Guillaume Smet
May 13, 2020, 3:32 PM

This was merged a while ago.

Assignee

Christoph Dreis

Reporter

Christoph Dreis

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Minor
Configure