| The reflective helper
Object invoke(Object target, Object... parameters)
, which is quite hot in various code points across Hibernate to read the value from getter methods, has the invoker implicitly allocate an empty array to be passed to the vararg supporting argument when there are no arguments. In most cases we'll invoke these helpers without expecting any argument, so it's worth adding an overloaded method which optimises for the common use case. |