clean up obsolete imports and warning suppressions

This commit is contained in:
Gavin 2022-12-20 21:16:19 +01:00 committed by Gavin King
parent 5089df2036
commit 72c2559d39
3 changed files with 2 additions and 12 deletions

View File

@ -14,9 +14,6 @@
package org.hibernate.boot.model;
import org.hibernate.query.sqm.function.SqmFunctionRegistry;
import org.hibernate.service.ServiceRegistry;
/**
* Contract for contributing functions
*

View File

@ -1077,19 +1077,16 @@ public class QuerySqmImpl<R>
@Override
public List<R> list() {
//noinspection unchecked
return super.list();
}
@Override
public ScrollableResultsImplementor<R> scroll() {
//noinspection unchecked
return super.scroll();
}
@Override
public ScrollableResultsImplementor<R> scroll(ScrollMode scrollMode) {
//noinspection unchecked
return super.scroll( scrollMode );
}
@ -1101,19 +1098,16 @@ public class QuerySqmImpl<R>
@Override
public R uniqueResult() {
//noinspection unchecked
return (R) super.uniqueResult();
return super.uniqueResult();
}
@Override
public R getSingleResult() {
//noinspection unchecked
return (R) super.getSingleResult();
return super.getSingleResult();
}
@Override
public Optional<R> uniqueResultOptional() {
//noinspection unchecked
return super.uniqueResultOptional();
}

View File

@ -24,7 +24,6 @@ import org.hibernate.type.descriptor.ValueBinder;
import org.hibernate.type.descriptor.ValueExtractor;
import org.hibernate.type.descriptor.WrapperOptions;
import org.hibernate.type.descriptor.java.BasicPluralJavaType;
import org.hibernate.type.descriptor.java.BasicJavaType;
import org.hibernate.type.descriptor.java.JavaType;
import org.hibernate.type.descriptor.jdbc.internal.JdbcLiteralFormatterArray;
import org.hibernate.type.spi.TypeConfiguration;