Fix compile error

This commit is contained in:
Christian Beikov 2022-03-24 21:23:00 +01:00
parent ce298a1566
commit ad806ffc83
1 changed files with 3 additions and 5 deletions

View File

@ -68,7 +68,7 @@ public class CompositeUserTypeJavaTypeWrapper<J> implements JavaType<J> {
if ( userType.equals( first, second ) ) {
return 0;
}
return Comparator.comparing( userType::hashCode ).compare( first, second );
return Comparator.<J, Integer>comparing( userType::hashCode ).compare( first, second );
}
@Override
@ -136,8 +136,7 @@ public class CompositeUserTypeJavaTypeWrapper<J> implements JavaType<J> {
@Override
public J deepCopy(J value) {
//noinspection unchecked
return (J) userType.deepCopy( value );
return userType.deepCopy( value );
}
@Override
@ -147,8 +146,7 @@ public class CompositeUserTypeJavaTypeWrapper<J> implements JavaType<J> {
@Override
public J assemble(Serializable cached, SharedSessionContract session) {
//noinspection unchecked
return (J) userType.disassemble( cached );
return userType.assemble( cached, null );
}
}
}