add missing @Override annotations

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-10-31 14:08:32 +01:00
parent 633f1012e1
commit eb6f7a0774
1 changed files with 4 additions and 0 deletions

View File

@ -26,10 +26,12 @@ public class ClassJavaType extends AbstractClassJavaType<Class<?>> {
return true; return true;
} }
@Override
public String toString(Class<?> value) { public String toString(Class<?> value) {
return value.getName(); return value.getName();
} }
@Override
public Class<?> fromString(CharSequence string) { public Class<?> fromString(CharSequence string) {
if ( string == null ) { if ( string == null ) {
return null; return null;
@ -43,6 +45,7 @@ public class ClassJavaType extends AbstractClassJavaType<Class<?>> {
} }
} }
@Override
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public <X> X unwrap(Class<?> value, Class<X> type, WrapperOptions options) { public <X> X unwrap(Class<?> value, Class<X> type, WrapperOptions options) {
if ( value == null ) { if ( value == null ) {
@ -57,6 +60,7 @@ public class ClassJavaType extends AbstractClassJavaType<Class<?>> {
throw unknownUnwrap( type ); throw unknownUnwrap( type );
} }
@Override
public <X> Class<?> wrap(X value, WrapperOptions options) { public <X> Class<?> wrap(X value, WrapperOptions options) {
if ( value == null ) { if ( value == null ) {
return null; return null;