improve generic typing of Hibernate.isPropertyInitialized()

This commit is contained in:
Gavin King 2023-08-10 20:56:00 +02:00
parent 09dd5daa73
commit bbee6cd4aa
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ public final class Hibernate {
* @return true if the named property of the object is not listed as uninitialized;
* false otherwise
*/
public <E, T> boolean isPropertyInitialized(E entity, Attribute<E, T> attribute) {
public <E> boolean isPropertyInitialized(E entity, Attribute<? super E, ?> attribute) {
return isPropertyInitialized( entity, attribute.getName() );
}