[hibernate-issues] [JIRA] (HV-1762) Avoid overhead from Method.getParameterTypes() where possible

Christoph Dreis (JIRA) jira at hibernate.atlassian.net
Fri Apr 3 05:53:34 EDT 2020


Christoph Dreis ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A28629985-c0e1-4d5c-9179-b7fab9c270f3 ) *created* an issue

Hibernate Validator ( https://hibernate.atlassian.net/browse/HV?atlOrigin=eyJpIjoiYWZmOTAzMTM4NjkyNGYwOGE1YzZkNjQ3OWFlNjE1MTYiLCJwIjoiaiJ9 ) / Improvement ( https://hibernate.atlassian.net/browse/HV-1762?atlOrigin=eyJpIjoiYWZmOTAzMTM4NjkyNGYwOGE1YzZkNjQ3OWFlNjE1MTYiLCJwIjoiaiJ9 ) HV-1762 ( https://hibernate.atlassian.net/browse/HV-1762?atlOrigin=eyJpIjoiYWZmOTAzMTM4NjkyNGYwOGE1YzZkNjQ3OWFlNjE1MTYiLCJwIjoiaiJ9 ) Avoid overhead from Method.getParameterTypes() where possible ( https://hibernate.atlassian.net/browse/HV-1762?atlOrigin=eyJpIjoiYWZmOTAzMTM4NjkyNGYwOGE1YzZkNjQ3OWFlNjE1MTYiLCJwIjoiaiJ9 )

Issue Type: Improvement Affects Versions: 7.0.0.Alpha1 Assignee: Unassigned Components: engine Created: 03/Apr/2020 02:53 AM Priority: Minor Reporter: Christoph Dreis ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A28629985-c0e1-4d5c-9179-b7fab9c270f3 )

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.

Pull-Request will follow shortly.

Cheers,
Christoph

( https://hibernate.atlassian.net/browse/HV-1762#add-comment?atlOrigin=eyJpIjoiYWZmOTAzMTM4NjkyNGYwOGE1YzZkNjQ3OWFlNjE1MTYiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HV-1762#add-comment?atlOrigin=eyJpIjoiYWZmOTAzMTM4NjkyNGYwOGE1YzZkNjQ3OWFlNjE1MTYiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100124- sha1:7217f9f )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200403/48b6126a/attachment.html 


More information about the hibernate-issues mailing list