mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-10338 Use an explicit empty object array to prevent the varargs method allocating one
This commit is contained in:
parent
77850972b6
commit
6ecb5ca923
@ -26,6 +26,9 @@
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
public class EnhancedGetterMethodImpl implements Getter {
|
||||
|
||||
private static final Object[] EMPTY = new Object[0];
|
||||
|
||||
private static final CoreMessageLogger LOG = messageLogger( EnhancedGetterMethodImpl.class );
|
||||
|
||||
private final Class containerClass;
|
||||
@ -54,7 +57,7 @@ public Object get(Object owner) {
|
||||
|
||||
// We don't want to trigger lazy loading of byte code enhanced attributes
|
||||
if ( isAttributeLoaded( owner ) ) {
|
||||
return getterMethod.invoke( owner );
|
||||
return getterMethod.invoke( owner, EMPTY );
|
||||
}
|
||||
return null;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user