We're updating the issue view to help you get more done. 

Reduce memory consumption caused by Method.getParameterTypes()

Description

Hey,

As of Java 8 there is the possibilty to call Method.getParameterCount(), which is a much more efficient variant in case just the parameter count is needed. Method.getParameterTypes() clones the underlying parameters and therefore creates unnecessary pressure on the heap in such cases.

I revised all places to use the new method.

Cheers,
Christoph

Environment

None

Status

Assignee

Gail Badner

Reporter

Christoph Dreis

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

Affirmative

backportDecision

None

Components

Affects versions

5.0.11

Priority

Minor