don't write @SuppressWarnings({ "unchecked" })
This commit is contained in:
parent
4b1cd56218
commit
a25758f519
|
@ -66,7 +66,7 @@ public class AnnotationsIllustrationTest extends TestCase {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testBasicUsage() {
|
||||
// create a couple of events...
|
||||
Session session = sessionFactory.openSession();
|
||||
|
|
|
@ -48,7 +48,7 @@ public class BitSetJavaType extends AbstractClassJavaType<BitSet> {
|
|||
return BitSetHelper.stringToBitSet(string.toString());
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(BitSet value, Class<X> type, WrapperOptions options) {
|
||||
if (value == null) {
|
||||
return null;
|
||||
|
|
|
@ -92,7 +92,7 @@ public class C3P0ConnectionProvider
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> T unwrap(Class<T> unwrapType) {
|
||||
if ( ConnectionProvider.class.equals( unwrapType ) ||
|
||||
C3P0ConnectionProvider.class.isAssignableFrom( unwrapType ) ) {
|
||||
|
|
|
@ -160,7 +160,7 @@ public class UnresolvedEntityInsertActions {
|
|||
return dependenciesByAction.isEmpty();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
private void addDependenciesByTransientEntity(AbstractEntityInsertAction insert, NonNullableTransientDependencies dependencies) {
|
||||
for ( Object transientEntity : dependencies.getNonNullableTransientEntities() ) {
|
||||
Set<AbstractEntityInsertAction> dependentActions = dependentActionsByTransientEntity.get( transientEntity );
|
||||
|
@ -182,7 +182,7 @@ public class UnresolvedEntityInsertActions {
|
|||
*
|
||||
* @throws IllegalArgumentException if {@code managedEntity} did not have managed or read-only status.
|
||||
*/
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public Set<AbstractEntityInsertAction> resolveDependentActions(Object managedEntity, SessionImplementor session) {
|
||||
final EntityEntry entityEntry = session.getPersistenceContextInternal().getEntry( managedEntity );
|
||||
if ( entityEntry.getStatus() != Status.MANAGED && entityEntry.getStatus() != Status.READ_ONLY ) {
|
||||
|
|
|
@ -1344,7 +1344,7 @@ public class InFlightMetadataCollectorImpl implements InFlightMetadataCollector
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void addUniqueConstraints(Table table, List uniqueConstraints) {
|
||||
List<UniqueConstraintHolder> constraintHolders = new ArrayList<>( uniqueConstraints.size() );
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ public class ValueConverterTypeAdapter<J> extends AbstractSingleColumnStandardBa
|
|||
|
||||
private final ValueBinder<Object> valueBinder;
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public ValueConverterTypeAdapter(
|
||||
String description,
|
||||
BasicValueConverter<J, ?> converter,
|
||||
|
|
|
@ -99,7 +99,7 @@ public class ClassLoaderServiceImpl implements ClassLoaderService {
|
|||
* @deprecated No longer used/supported!
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public static ClassLoaderServiceImpl fromConfigSettings(Map configValues) {
|
||||
final List<ClassLoader> providedClassLoaders = new ArrayList<>();
|
||||
|
||||
|
@ -112,7 +112,7 @@ public class ClassLoaderServiceImpl implements ClassLoaderService {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> Class<T> classForName(String className) {
|
||||
try {
|
||||
return (Class<T>) Class.forName( className, true, getAggregatedClassLoader() );
|
||||
|
|
|
@ -54,7 +54,7 @@ public abstract class AbstractMultiTenantConnectionProvider implements MultiTena
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> T unwrap(Class<T> unwrapType) {
|
||||
if ( MultiTenantConnectionProvider.class.isAssignableFrom( unwrapType ) ) {
|
||||
return (T) this;
|
||||
|
|
|
@ -318,7 +318,7 @@ public class JdbcCoordinatorImpl implements JdbcCoordinator {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void registerLastQuery(Statement statement) {
|
||||
LOG.tracev( "Registering last query statement [{0}]", statement );
|
||||
if ( statement instanceof JdbcWrapper ) {
|
||||
|
@ -359,7 +359,7 @@ public class JdbcCoordinatorImpl implements JdbcCoordinator {
|
|||
releasesEnabled = false;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
protected void close(Statement statement) {
|
||||
LOG.tracev( "Closing prepared statement [{0}]", statement );
|
||||
|
||||
|
@ -408,7 +408,7 @@ public class JdbcCoordinatorImpl implements JdbcCoordinator {
|
|||
LOG.tracev( "Closing result set [{0}]", resultSet );
|
||||
|
||||
if ( resultSet instanceof InvalidatableWrapper ) {
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
final InvalidatableWrapper<ResultSet> wrapper = (InvalidatableWrapper<ResultSet>) resultSet;
|
||||
close( wrapper.getWrappedObject() );
|
||||
wrapper.invalidate();
|
||||
|
|
|
@ -97,7 +97,7 @@ public class EventListenerRegistryImpl implements EventListenerRegistry {
|
|||
this.eventListeners = eventListeners;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> EventListenerGroup<T> getEventListenerGroup(EventType<T> eventType) {
|
||||
if ( eventListeners.length < eventType.ordinal() + 1 ) {
|
||||
// eventTpe is a custom EventType that has not been registered.
|
||||
|
|
|
@ -179,7 +179,7 @@ public final class ArrayHelper {
|
|||
return result;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <T> T[] join(T[] x, T... y) {
|
||||
T[] result = (T[]) Array.newInstance( x.getClass().getComponentType(), x.length + y.length );
|
||||
System.arraycopy( x, 0, result, 0, x.length );
|
||||
|
|
|
@ -87,7 +87,7 @@ public final class IdentityMap<K,V> implements Map<K,V> {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public boolean containsKey(Object key) {
|
||||
return map.containsKey( new IdentityKey( key ) );
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ public final class RowVersionComparator implements Comparator<byte[]> {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public int compare(byte[] o1, byte[] o2) {
|
||||
final int lengthToCheck = Math.min( o1.length, o2.length );
|
||||
|
||||
|
|
|
@ -261,7 +261,7 @@ public final class ConfigurationHelper {
|
|||
*
|
||||
* @return The clone
|
||||
*/
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public static Map clone(Map<?,?> configurationValues) {
|
||||
if ( configurationValues == null ) {
|
||||
return null;
|
||||
|
|
|
@ -147,7 +147,7 @@ public class BasicValue extends SimpleValue implements JdbcTypeIndicators, Resol
|
|||
super.setJpaAttributeConverterDescriptor( descriptor );
|
||||
}
|
||||
|
||||
@SuppressWarnings({"rawtypes"})
|
||||
@SuppressWarnings("rawtypes")
|
||||
public void setExplicitJavaTypeAccess(Function<TypeConfiguration, BasicJavaType> explicitJavaTypeAccess) {
|
||||
this.explicitJavaTypeAccess = explicitJavaTypeAccess;
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ public class AttributeFactory {
|
|||
return buildAttribute( ownerType, property, context );
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <X, Y> PersistentAttribute<X, Y> buildAttribute(
|
||||
ManagedDomainType<X> ownerType,
|
||||
Property property,
|
||||
|
|
|
@ -108,7 +108,7 @@ public abstract class AbstractIdentifiableType<J>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <Y> SingularPersistentAttribute<? super J, Y> getId(Class<Y> javaType) {
|
||||
ensureNoIdClass();
|
||||
SingularPersistentAttribute<J, ?> id = findIdAttribute();
|
||||
|
@ -163,7 +163,7 @@ public abstract class AbstractIdentifiableType<J>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <Y> SingularPersistentAttribute<J, Y> getDeclaredId(Class<Y> javaType) {
|
||||
ensureNoIdClass();
|
||||
if ( id == null ) {
|
||||
|
@ -287,7 +287,7 @@ public abstract class AbstractIdentifiableType<J>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <Y> SingularPersistentAttribute<J, Y> getDeclaredVersion(Class<Y> javaType) {
|
||||
checkDeclaredVersion();
|
||||
checkType( versionAttribute, javaType );
|
||||
|
|
|
@ -259,7 +259,7 @@ public abstract class AbstractManagedType<J>
|
|||
// Singular attributes
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public Set<SingularAttribute<? super J, ?>> getSingularAttributes() {
|
||||
HashSet attributes = new HashSet<>( declaredSingularAttributes.values() );
|
||||
if ( getSuperType() != null ) {
|
||||
|
@ -292,7 +292,7 @@ public abstract class AbstractManagedType<J>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <Y> SingularPersistentAttribute<? super J, Y> getSingularAttribute(String name, Class<Y> type) {
|
||||
SingularAttribute attribute = findSingularAttribute( name );
|
||||
checkTypeForSingleAttribute( attribute, name, type );
|
||||
|
@ -462,7 +462,7 @@ public abstract class AbstractManagedType<J>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <E> BagPersistentAttribute<? super J, E> getCollection(String name, Class<E> elementType) {
|
||||
PluralAttribute<? super J, ?, ?> attribute = findPluralAttribute( name );
|
||||
checkCollectionElementType( attribute, name, elementType );
|
||||
|
@ -486,7 +486,7 @@ public abstract class AbstractManagedType<J>
|
|||
// Set attributes
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public SetPersistentAttribute<? super J, ?> getSet(String name) {
|
||||
final PluralAttribute attribute = findPluralAttribute( name );
|
||||
basicSetCheck( attribute, name );
|
||||
|
@ -509,7 +509,7 @@ public abstract class AbstractManagedType<J>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <E> SetAttribute<? super J, E> getSet(String name, Class<E> elementType) {
|
||||
PluralAttribute<? super J, ?, ?> attribute = findPluralAttribute( name );
|
||||
checkSetElementType( attribute, name, elementType );
|
||||
|
@ -533,7 +533,7 @@ public abstract class AbstractManagedType<J>
|
|||
// List attributes
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public ListPersistentAttribute<? super J, ?> getList(String name) {
|
||||
PluralAttribute<? super J, ?, ?> attribute = findPluralAttribute( name );
|
||||
basicListCheck( attribute, name );
|
||||
|
@ -556,7 +556,7 @@ public abstract class AbstractManagedType<J>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <E> ListAttribute<? super J, E> getList(String name, Class<E> elementType) {
|
||||
PluralAttribute<? super J, ?, ?> attribute = findPluralAttribute( name );
|
||||
checkListElementType( attribute, name, elementType );
|
||||
|
@ -580,7 +580,7 @@ public abstract class AbstractManagedType<J>
|
|||
// Map attributes
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public MapPersistentAttribute<? super J, ?, ?> getMap(String name) {
|
||||
PluralAttribute<? super J, ?, ?> attribute = findPluralAttribute( name );
|
||||
basicMapCheck( attribute, name );
|
||||
|
@ -603,7 +603,7 @@ public abstract class AbstractManagedType<J>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <K, V> MapAttribute<? super J, K, V> getMap(String name, Class<K> keyType, Class<V> valueType) {
|
||||
PluralAttribute<? super J, ?, ?> attribute = findPluralAttribute( name );
|
||||
checkMapValueType( attribute, name, valueType );
|
||||
|
|
|
@ -42,7 +42,7 @@ public class ByteBuddyProxyHelper implements Serializable {
|
|||
this.byteBuddyState = byteBuddyState;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes" })
|
||||
@SuppressWarnings("rawtypes")
|
||||
public Class buildProxy(
|
||||
final Class<?> persistentClass,
|
||||
final Class<?>[] interfaces) {
|
||||
|
|
|
@ -806,7 +806,7 @@ public class SqmCriteriaNodeBuilder implements NodeBuilder, SqmCreationContext,
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public SqmExpression<Number> quot(Number x, Expression<? extends Number> y) {
|
||||
return createSqmArithmeticNode(
|
||||
BinaryArithmeticOperator.QUOT,
|
||||
|
@ -1669,7 +1669,7 @@ public class SqmCriteriaNodeBuilder implements NodeBuilder, SqmCreationContext,
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <Y extends Comparable<? super Y>> SqmPredicate between(Expression<? extends Y> value, Y lower, Y upper) {
|
||||
final SqmExpression<? extends Y> valueExpression = (SqmExpression<? extends Y>) value;
|
||||
return new SqmBetweenPredicate(
|
||||
|
|
|
@ -159,7 +159,7 @@ public final class ResourceRegistryStandardImpl implements ResourceRegistry {
|
|||
close( s );
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
private static void close(final ResultSet resultSet) {
|
||||
log.tracef( "Closing result set [%s]", resultSet );
|
||||
|
||||
|
@ -175,7 +175,7 @@ public final class ResourceRegistryStandardImpl implements ResourceRegistry {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public static void close(Statement statement) {
|
||||
log.tracef( "Closing prepared statement [%s]", statement );
|
||||
|
||||
|
|
|
@ -154,13 +154,13 @@ public abstract class AbstractStandardBasicType<T>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public boolean isEqual(Object one, Object another) {
|
||||
return javaType.areEqual( (T) one, (T) another );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public final int getHashCode(Object x) {
|
||||
return javaType.extractHashCode( (T) x );
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ public abstract class AbstractStandardBasicType<T>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public final int compare(Object x, Object y) {
|
||||
return javaType.getComparator().compare( (T) x, (T) y );
|
||||
}
|
||||
|
@ -214,7 +214,7 @@ public abstract class AbstractStandardBasicType<T>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public final String toLoggableString(Object value, SessionFactoryImplementor factory) {
|
||||
if ( value == LazyPropertyInitializer.UNFETCHED_PROPERTY || !Hibernate.isInitialized( value ) ) {
|
||||
return "<uninitialized>";
|
||||
|
@ -228,7 +228,7 @@ public abstract class AbstractStandardBasicType<T>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public final Object deepCopy(Object value, SessionFactoryImplementor factory) {
|
||||
return deepCopy( (T) value );
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ public abstract class AbstractStandardBasicType<T>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public final Serializable disassemble(Object value, SharedSessionContractImplementor session, Object owner) throws HibernateException {
|
||||
return getMutabilityPlan().disassemble( (T) value, session );
|
||||
}
|
||||
|
@ -253,7 +253,7 @@ public abstract class AbstractStandardBasicType<T>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public final Object replace(Object original, Object target, SharedSessionContractImplementor session, Object owner, Map<Object, Object> copyCache) {
|
||||
if ( original == null && target == null ) {
|
||||
return null;
|
||||
|
@ -263,7 +263,7 @@ public abstract class AbstractStandardBasicType<T>
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public Object replace(
|
||||
Object original,
|
||||
Object target,
|
||||
|
|
|
@ -208,13 +208,13 @@ public class SerializableToBlobType<T extends Serializable> implements BasicType
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public boolean isEqual(Object one, Object another) {
|
||||
return javaType.areEqual( (T) one, (T) another );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public final int getHashCode(Object x) {
|
||||
return javaType.extractHashCode( (T) x );
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ public class SerializableToBlobType<T extends Serializable> implements BasicType
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public final int compare(Object x, Object y) {
|
||||
return javaType.getComparator().compare( (T) x, (T) y );
|
||||
}
|
||||
|
@ -268,7 +268,7 @@ public class SerializableToBlobType<T extends Serializable> implements BasicType
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public final String toLoggableString(Object value, SessionFactoryImplementor factory) {
|
||||
if ( value == LazyPropertyInitializer.UNFETCHED_PROPERTY || !Hibernate.isInitialized( value ) ) {
|
||||
return "<uninitialized>";
|
||||
|
@ -282,7 +282,7 @@ public class SerializableToBlobType<T extends Serializable> implements BasicType
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public final Object deepCopy(Object value, SessionFactoryImplementor factory) {
|
||||
return deepCopy( (T) value );
|
||||
}
|
||||
|
@ -292,7 +292,7 @@ public class SerializableToBlobType<T extends Serializable> implements BasicType
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public final Serializable disassemble(Object value, SharedSessionContractImplementor session, Object owner) throws HibernateException {
|
||||
return getMutabilityPlan().disassemble( (T) value, session );
|
||||
}
|
||||
|
@ -317,7 +317,7 @@ public class SerializableToBlobType<T extends Serializable> implements BasicType
|
|||
}
|
||||
|
||||
@Override
|
||||
// @SuppressWarnings({ "unchecked" })
|
||||
// @SuppressWarnings("unchecked")
|
||||
public Object replace(
|
||||
Object original,
|
||||
Object target,
|
||||
|
|
|
@ -45,7 +45,7 @@ public abstract class AbstractClassJavaType<T> implements BasicJavaType<T>, Seri
|
|||
* @param type The Java type.
|
||||
* @param mutabilityPlan The plan for handling mutability aspects of the java type.
|
||||
*/
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
protected AbstractClassJavaType(Class<? extends T> type, MutabilityPlan<? extends T> mutabilityPlan) {
|
||||
this(
|
||||
type,
|
||||
|
|
|
@ -44,7 +44,7 @@ public class BigDecimalJavaType extends AbstractClassJavaType<BigDecimal> {
|
|||
return value.intValue();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(BigDecimal value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -47,7 +47,7 @@ public class BigIntegerJavaType extends AbstractClassJavaType<BigInteger> {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(BigInteger value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -102,7 +102,7 @@ public class BlobJavaType extends AbstractClassJavaType<Blob> {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(Blob value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -51,7 +51,7 @@ public class BooleanJavaType extends AbstractClassJavaType<Boolean> implements
|
|||
return Boolean.valueOf( string.toString() );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(Boolean value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.hibernate.type.descriptor.WrapperOptions;
|
|||
public class ByteArrayJavaType extends AbstractClassJavaType<Byte[]> {
|
||||
public static final ByteArrayJavaType INSTANCE = new ByteArrayJavaType();
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public ByteArrayJavaType() {
|
||||
super( Byte[].class, ArrayMutabilityPlan.INSTANCE, IncomparableComparator.INSTANCE );
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ public class ByteArrayJavaType extends AbstractClassJavaType<Byte[]> {
|
|||
return bytes;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(Byte[] value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -40,7 +40,7 @@ public class ByteJavaType extends AbstractClassJavaType<Byte>
|
|||
return Byte.valueOf( string.toString() );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(Byte value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -93,7 +93,7 @@ public class CalendarDateJavaType extends AbstractTemporalJavaType<Calendar> {
|
|||
return hashCode;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(Calendar value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -109,7 +109,7 @@ public class CalendarJavaType extends AbstractTemporalJavaType<Calendar> impleme
|
|||
return hashCode;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(Calendar value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -93,7 +93,7 @@ public class CalendarTimeJavaType extends AbstractTemporalJavaType<Calendar> {
|
|||
return hashCode;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(Calendar value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.hibernate.type.descriptor.WrapperOptions;
|
|||
public class CharacterArrayJavaType extends AbstractClassJavaType<Character[]> {
|
||||
public static final CharacterArrayJavaType INSTANCE = new CharacterArrayJavaType();
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public CharacterArrayJavaType() {
|
||||
super( Character[].class, ArrayMutabilityPlan.INSTANCE, IncomparableComparator.INSTANCE );
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ public class CharacterArrayJavaType extends AbstractClassJavaType<Character[]> {
|
|||
return hashCode;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(Character[] value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -37,7 +37,7 @@ public class CharacterJavaType extends AbstractClassJavaType<Character> implemen
|
|||
return string.charAt( 0 );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(Character value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -38,7 +38,7 @@ public class ClassJavaType extends AbstractClassJavaType<Class> {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(Class value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -79,7 +79,7 @@ public class ClobJavaType extends AbstractClassJavaType<Clob> {
|
|||
return session.getJdbcServices().getJdbcEnvironment().getDialect().getLobMergeStrategy().mergeClob( original, target, session );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(final Clob value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -32,7 +32,7 @@ public class CurrencyJavaType extends AbstractClassJavaType<Currency> {
|
|||
return Currency.getInstance( string.toString() );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(Currency value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -108,7 +108,7 @@ public class DateJavaType extends AbstractTemporalJavaType<Date> implements Vers
|
|||
return CalendarJavaType.INSTANCE.extractHashCode( calendar );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(Date value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -44,7 +44,7 @@ public class DoubleJavaType extends AbstractClassJavaType<Double> implements
|
|||
return Double.valueOf( string.toString() );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(Double value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -43,7 +43,7 @@ public class FloatTypeDescriptor extends AbstractClassJavaType<Float> implements
|
|||
return Float.valueOf( string.toString() );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(Float value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -39,7 +39,7 @@ public class ImmutableMutabilityPlan<T> implements MutabilityPlan<T> {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public T assemble(Serializable cached, SharedSessionContract session) {
|
||||
return (T) cached;
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ public class InetAddressJavaType extends AbstractClassJavaType<InetAddress> {
|
|||
return indicators.getTypeConfiguration().getJdbcTypeRegistry().getDescriptor( SqlTypes.INET );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(InetAddress value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -39,7 +39,7 @@ public class IntegerJavaType extends AbstractClassJavaType<Integer>
|
|||
return string == null ? null : Integer.valueOf( string.toString() );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(Integer value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -86,7 +86,7 @@ public class LocaleJavaType extends AbstractClassJavaType<Locale> {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(Locale value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -39,7 +39,7 @@ public class LongJavaType extends AbstractClassJavaType<Long>
|
|||
return Long.valueOf( string.toString() );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(Long value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -35,7 +35,7 @@ public abstract class MutableMutabilityPlan<T> implements MutabilityPlan<T> {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public T assemble(Serializable cached, SharedSessionContract session) {
|
||||
return deepCopy( (T) cached );
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ public class NClobJavaType extends AbstractClassJavaType<NClob> {
|
|||
return session.getJdbcServices().getJdbcEnvironment().getDialect().getLobMergeStrategy().mergeNClob( original, target, session );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(final NClob value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -64,7 +64,7 @@ public class ObjectArrayJavaType extends AbstractClassJavaType<Object[]> {
|
|||
return hashCode;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(Object[] value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public class PrimitiveByteArrayJavaType extends AbstractClassJavaType<byte[]>
|
|||
implements VersionJavaType<byte[]> {
|
||||
public static final PrimitiveByteArrayJavaType INSTANCE = new PrimitiveByteArrayJavaType();
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public PrimitiveByteArrayJavaType() {
|
||||
super( byte[].class, ArrayMutabilityPlan.INSTANCE, RowVersionComparator.INSTANCE );
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ public class PrimitiveByteArrayJavaType extends AbstractClassJavaType<byte[]>
|
|||
return bytes;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(byte[] value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.hibernate.type.descriptor.WrapperOptions;
|
|||
public class PrimitiveCharacterArrayJavaType extends AbstractClassJavaType<char[]> {
|
||||
public static final PrimitiveCharacterArrayJavaType INSTANCE = new PrimitiveCharacterArrayJavaType();
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
protected PrimitiveCharacterArrayJavaType() {
|
||||
super( char[].class, ArrayMutabilityPlan.INSTANCE, IncomparableComparator.INSTANCE );
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ public class PrimitiveCharacterArrayJavaType extends AbstractClassJavaType<char[
|
|||
return hashCode;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(char[] value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -29,7 +29,7 @@ public class RowVersionJavaType extends AbstractClassJavaType<byte[]>
|
|||
implements VersionJavaType<byte[]> {
|
||||
public static final RowVersionJavaType INSTANCE = new RowVersionJavaType();
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public RowVersionJavaType() {
|
||||
super( byte[].class, ArrayMutabilityPlan.INSTANCE, RowVersionComparator.INSTANCE );
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ public class RowVersionJavaType extends AbstractClassJavaType<byte[]>
|
|||
return bytes;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(byte[] value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -39,7 +39,7 @@ public class SerializableJavaType<T extends Serializable> extends AbstractClassJ
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public S deepCopyNotNull(S value) {
|
||||
return (S) SerializationHelper.clone( value );
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ public class SerializableJavaType<T extends Serializable> extends AbstractClassJ
|
|||
return PrimitiveByteArrayJavaType.INSTANCE.extractHashCode( toBytes( value ) );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(T value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
@ -147,7 +147,7 @@ public class SerializableJavaType<T extends Serializable> extends AbstractClassJ
|
|||
return SerializationHelper.serialize( value );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
protected T fromBytes(byte[] bytes) {
|
||||
return (T) SerializationHelper.deserialize( bytes, getJavaTypeClass().getClassLoader() );
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ public class ShortJavaType extends AbstractClassJavaType<Short>
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(Short value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
|
|
|
@ -56,7 +56,7 @@ public class StringJavaType extends AbstractClassJavaType<String> {
|
|||
return super.getRecommendedJdbcType( stdIndicators );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(String value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -39,7 +39,7 @@ public class TimeZoneJavaType extends AbstractClassJavaType<TimeZone> {
|
|||
return TimeZone.getTimeZone( string.toString() );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(TimeZone value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -52,7 +52,7 @@ public class UUIDJavaType extends AbstractClassJavaType<UUID> {
|
|||
return super.getDefaultSqlLength( dialect, jdbcType );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(UUID value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -45,7 +45,7 @@ public class UrlJavaType extends AbstractClassJavaType<URL> {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(URL value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -48,7 +48,7 @@ public class ZoneOffsetJavaType extends AbstractClassJavaType<ZoneOffset> {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(ZoneOffset value, Class<X> type, WrapperOptions wrapperOptions) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -57,7 +57,7 @@ public class UserTypeSqlTypeAdapter<J> implements JdbcType {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> ValueBinder<X> getBinder(JavaType<X> javaType) {
|
||||
assert javaType.getJavaTypeClass() == null
|
||||
|| jtd.getJavaTypeClass().isAssignableFrom( javaType.getJavaTypeClass() );
|
||||
|
@ -65,7 +65,7 @@ public class UserTypeSqlTypeAdapter<J> implements JdbcType {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> ValueExtractor<X> getExtractor(JavaType<X> javaType) {
|
||||
assert javaType.getJavaTypeClass() == null
|
||||
|| javaType.getJavaTypeClass().isAssignableFrom( jtd.getJavaTypeClass() );
|
||||
|
|
|
@ -46,7 +46,7 @@ public class IdClassGeneratedValueTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testBaseLine(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
@ -69,7 +69,7 @@ public class IdClassGeneratedValueTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testBaseLine2(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
@ -89,7 +89,7 @@ public class IdClassGeneratedValueTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testSingleGeneratedValue(SessionFactoryScope scope) {
|
||||
Long s1Id1 = scope.fromTransaction(
|
||||
session -> {
|
||||
|
@ -113,7 +113,7 @@ public class IdClassGeneratedValueTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testMultipleGeneratedValue(SessionFactoryScope scope) {
|
||||
List<Long> m1Ids = scope.fromTransaction(
|
||||
session -> {
|
||||
|
|
|
@ -43,7 +43,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
)
|
||||
public class BatchFetchTest {
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Test
|
||||
public void testBatchFetch(SessionFactoryScope scope) {
|
||||
ProductLine ossProductLine = new ProductLine();
|
||||
|
@ -134,7 +134,7 @@ public class BatchFetchTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testBatchFetch2(SessionFactoryScope scope) {
|
||||
int size = 32 + 14;
|
||||
scope.inTransaction(
|
||||
|
|
|
@ -33,7 +33,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
public class AuctionTest {
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testLazy(SessionFactoryScope scope) {
|
||||
Auction auction = new Auction();
|
||||
auction.setEnd( new Date() );
|
||||
|
|
|
@ -59,7 +59,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
public class PersistentMapTest {
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testWriteMethodDirtying(SessionFactoryScope scope) {
|
||||
Parent parent = new Parent( "p1" );
|
||||
Child child = new Child( "c1" );
|
||||
|
|
|
@ -67,7 +67,7 @@ public class JoinFetchProfileTest extends BaseCoreFunctionalTestCase {
|
|||
void perform(TestData data);
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
private void performWithStandardData(TestCode testCode) {
|
||||
final Department literatureDepartment = new Department( "lit", "Literature" );
|
||||
final Student me = new Student( "Steve" );
|
||||
|
|
|
@ -715,7 +715,7 @@ public class BulkManipulationTest extends BaseCoreFunctionalTestCase {
|
|||
s.close();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Test
|
||||
public void testUpdateWithWhereExistsSubquery() {
|
||||
// multi-table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
@ -46,7 +46,7 @@ public class InetJavaType extends AbstractClassJavaType<Inet> {
|
|||
return value.hashCode();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(Inet value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -38,7 +38,7 @@ public class JsonJavaType extends AbstractClassJavaType<Json> {
|
|||
return value.hashCode();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <X> X unwrap(Json value, Class<X> type, WrapperOptions options) {
|
||||
if ( value == null ) {
|
||||
return null;
|
||||
|
|
|
@ -40,7 +40,7 @@ import static org.junit.jupiter.api.Assertions.assertSame;
|
|||
public class MergeMultipleEntityCopiesAllowedTest {
|
||||
|
||||
@AfterEach
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
void cleanup(EntityManagerFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
entityManager -> {
|
||||
|
|
|
@ -36,7 +36,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
public class MergeMultipleEntityCopiesDisallowedByDefaultTest {
|
||||
|
||||
@AfterEach
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
void cleanup(EntityManagerFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
entityManager -> {
|
||||
|
|
|
@ -104,7 +104,7 @@ public class MetadataTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testBuildingMetamodelWithParameterizedCollection() {
|
||||
Metadata metadata = new MetadataSources()
|
||||
.addAnnotatedClass(WithGenericCollection.class)
|
||||
|
|
|
@ -121,7 +121,7 @@ public class MapIndexFormulaTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testSQLQuery(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
|
|
@ -52,7 +52,7 @@ public class MapElementFormulaTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testManyToManyFormula(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
|
|
@ -33,7 +33,7 @@ import static org.junit.jupiter.api.Assertions.fail;
|
|||
public class CreateTest extends AbstractOperationTestCase {
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testNoUpdatesOnCreateVersionedWithCollection(SessionFactoryScope scope) {
|
||||
clearCounts( scope );
|
||||
|
||||
|
@ -212,7 +212,7 @@ public class CreateTest extends AbstractOperationTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@SkipForDialect(dialectClass = AbstractHANADialect.class, reason = " HANA doesn't support tables consisting of only a single auto-generated column")
|
||||
public void testBasic(SessionFactoryScope scope) throws Exception {
|
||||
Employer er = new Employer();
|
||||
|
|
|
@ -19,7 +19,7 @@ import org.junit.jupiter.api.Test;
|
|||
public class DeleteTest extends AbstractOperationTestCase {
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testDeleteVersionedWithCollectionNoUpdate(SessionFactoryScope scope) {
|
||||
// test adapted from HHH-1564...
|
||||
scope.inTransaction(
|
||||
|
@ -66,7 +66,7 @@ public class DeleteTest extends AbstractOperationTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testNoUpdateOnDeleteWithCollection(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
|
|
@ -466,7 +466,7 @@ public class MergeMultipleEntityCopiesAllowedOrphanDeleteTest {
|
|||
cleanup( scope );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
private void cleanup(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
|
|
@ -1162,7 +1162,7 @@ public class MergeMultipleEntityCopiesAllowedTest {
|
|||
cleanup( scope );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
private void cleanup(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
|
|
@ -164,7 +164,7 @@ public class MergeMultipleEntityCopiesCustomTest {
|
|||
cleanup( scope );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
private void cleanup(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
|
|
@ -116,7 +116,7 @@ public class MergeMultipleEntityCopiesDisallowedByDefaultTest {
|
|||
cleanup( scope );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
private void cleanup(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
|
|
@ -180,7 +180,7 @@ public class MergeTest extends AbstractOperationTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testNoExtraUpdatesOnMergeWithCollection(SessionFactoryScope scope) {
|
||||
Node parent = new Node( "parent" );
|
||||
scope.inTransaction(
|
||||
|
@ -259,7 +259,7 @@ public class MergeTest extends AbstractOperationTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testNoExtraUpdatesOnMergeVersionedWithCollection(SessionFactoryScope scope) {
|
||||
VersionedEntity parent = new VersionedEntity( "parent", "parent" );
|
||||
VersionedEntity child = new VersionedEntity( "child", "child" );
|
||||
|
@ -730,7 +730,7 @@ public class MergeTest extends AbstractOperationTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@SkipForDialect(dialectClass = AbstractHANADialect.class, reason = " HANA doesn't support tables consisting of only a single auto-generated column")
|
||||
public void testRecursiveMergeTransient(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
|
@ -776,7 +776,7 @@ public class MergeTest extends AbstractOperationTestCase {
|
|||
cleanup( scope );
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@Test
|
||||
@SkipForDialect(dialectClass = AbstractHANADialect.class, reason = " HANA doesn't support tables consisting of only a single auto-generated column")
|
||||
public void testMergeManyToManyWithCollectionDeference(SessionFactoryScope scope) {
|
||||
|
|
|
@ -43,7 +43,7 @@ public class OrderByTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testOrderBy(SessionFactoryScope scope) {
|
||||
|
||||
scope.inTransaction(
|
||||
|
|
|
@ -41,7 +41,7 @@ public class OrphanTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testOrphanDeleteOnDelete(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
@ -75,7 +75,7 @@ public class OrphanTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testOrphanDeleteAfterPersist(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
@ -105,7 +105,7 @@ public class OrphanTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testOrphanDeleteAfterPersistAndFlush(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
@ -136,7 +136,7 @@ public class OrphanTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testOrphanDeleteAfterLock(SessionFactoryScope scope) {
|
||||
Product prod = new Product();
|
||||
Part part = new Part();
|
||||
|
@ -172,7 +172,7 @@ public class OrphanTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testOrphanDeleteOnSaveOrUpdate(SessionFactoryScope scope) {
|
||||
Product prod = new Product();
|
||||
Part part = new Part();
|
||||
|
@ -207,7 +207,7 @@ public class OrphanTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testOrphanDeleteOnSaveOrUpdateAfterSerialization(SessionFactoryScope scope) {
|
||||
Product prod = new Product();
|
||||
Part part = new Part();
|
||||
|
@ -244,7 +244,7 @@ public class OrphanTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testOrphanDelete(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
session -> {
|
||||
|
@ -285,7 +285,7 @@ public class OrphanTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testOrphanDeleteOnMerge(SessionFactoryScope scope) {
|
||||
Product prod = new Product();
|
||||
Part part = new Part();
|
||||
|
@ -321,7 +321,7 @@ public class OrphanTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testOrphanDeleteOnMergeRemoveElementMerge(SessionFactoryScope scope) {
|
||||
Product prod = new Product();
|
||||
Part part = new Part();
|
||||
|
@ -352,7 +352,7 @@ public class OrphanTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
@TestForIssue(jiraKey = "HHH-9171")
|
||||
public void testOrphanDeleteOnAddElementMergeRemoveElementMerge(SessionFactoryScope scope) {
|
||||
Product prod = new Product();
|
||||
|
|
|
@ -167,7 +167,7 @@ public class QueryParametersValidationArrayTest {
|
|||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <X> X unwrap(String[] value, Class<X> type, WrapperOptions options) {
|
||||
return (X) value;
|
||||
|
|
|
@ -31,7 +31,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
|||
public class DiscrimSubclassFilterTest {
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testFiltersWithSubclass(SessionFactoryScope scope) {
|
||||
scope.inTransaction(
|
||||
s -> {
|
||||
|
@ -92,7 +92,7 @@ public class DiscrimSubclassFilterTest {
|
|||
);
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
private void prepareTestData(Session s) {
|
||||
Employee john = new Employee( "John Doe" );
|
||||
john.setCompany( "JBoss" );
|
||||
|
|
|
@ -30,7 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
|||
public class UnionSubclassFilterTest {
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testFiltersWithUnionSubclass(SessionFactoryScope scope) {
|
||||
|
||||
scope.inTransaction(
|
||||
|
@ -93,7 +93,7 @@ public class UnionSubclassFilterTest {
|
|||
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
private void prepareTestData(Session s) {
|
||||
Employee john = new Employee( "John Doe" );
|
||||
john.setCompany( "JBoss" );
|
||||
|
|
|
@ -36,7 +36,7 @@ public class SubselectTest extends BaseCoreFunctionalTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testEntitySubselect() {
|
||||
inTransaction(
|
||||
s -> {
|
||||
|
|
|
@ -37,7 +37,7 @@ public class PreparedStatementProxy<T> implements InvocationHandler {
|
|||
return cl;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
||||
if ( value == null ) {
|
||||
assertEquals( "setNull", method.getName(), "Expecting setNull call" );
|
||||
|
|
|
@ -59,7 +59,7 @@ public class TestConsole {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
private void printPersons(StringBuilder sb) {
|
||||
List<Person> persons = entityManager.createQuery(
|
||||
"select p from Person p order by p.id").getResultList();
|
||||
|
@ -196,7 +196,7 @@ public class TestConsole {
|
|||
sb.append(")");
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
private void printAddresses(StringBuilder sb) {
|
||||
List<Address> addresses = entityManager.createQuery(
|
||||
"select a from Address a order by a.id").getResultList();
|
||||
|
|
|
@ -143,7 +143,7 @@ public final class AuditMetadataGenerator extends AbstractMetadataGenerator {
|
|||
return true;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
private void createJoins(PersistentClass persistentClass, JoinAwarePersistentEntity entity, ClassAuditingData auditingData) {
|
||||
final Iterator<org.hibernate.mapping.Join> joins = persistentClass.getJoinIterator();
|
||||
final Map<org.hibernate.mapping.Join, Join> joinElements = new HashMap<>();
|
||||
|
@ -190,7 +190,7 @@ public final class AuditMetadataGenerator extends AbstractMetadataGenerator {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
private void addJoins(
|
||||
PersistentClass persistentClass,
|
||||
CompositeMapperBuilder currentMapper,
|
||||
|
|
|
@ -36,7 +36,7 @@ public final class ComponentMetadataGenerator extends AbstractMetadataGenerator
|
|||
this.valueGenerator = valueGenerator;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public void addComponent(
|
||||
AttributeContainer attributeContainer,
|
||||
PropertyAuditingData propertyAuditingData,
|
||||
|
|
|
@ -100,7 +100,7 @@ public class EntityInstantiator {
|
|||
return ret;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
private void replaceNonAuditIdProxies(Map versionsEntity, Number revision) {
|
||||
final Map originalId = (Map) versionsEntity.get( enversService.getConfig().getOriginalIdPropertyName() );
|
||||
for ( Object key : originalId.keySet() ) {
|
||||
|
@ -141,7 +141,7 @@ public class EntityInstantiator {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public void addInstancesFromVersionsEntities(
|
||||
String entityName,
|
||||
Collection addTo,
|
||||
|
|
|
@ -130,7 +130,7 @@ public abstract class AbstractCollectionMapper<T> extends AbstractPropertyMapper
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<PersistentCollectionChangeData> mapCollectionChanges(
|
||||
SessionImplementor session,
|
||||
String referencingPropertyName,
|
||||
|
|
|
@ -69,7 +69,7 @@ public final class ListCollectionMapper extends AbstractCollectionMapper<List> i
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
protected Collection getNewCollectionContent(PersistentCollection newCollection) {
|
||||
if ( newCollection == null ) {
|
||||
return null;
|
||||
|
@ -80,7 +80,7 @@ public final class ListCollectionMapper extends AbstractCollectionMapper<List> i
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
protected Collection getOldCollectionContent(Serializable oldCollection) {
|
||||
if ( oldCollection == null ) {
|
||||
return null;
|
||||
|
@ -91,7 +91,7 @@ public final class ListCollectionMapper extends AbstractCollectionMapper<List> i
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
protected void mapToMapFromObject(
|
||||
SessionImplementor session,
|
||||
Map<String, Object> idData,
|
||||
|
|
|
@ -36,7 +36,7 @@ public class MiddleMapElementNotKeyComponentMapper extends AbstractMiddleCompone
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public Object mapToObjectFromFullMap(
|
||||
EntityInstantiator entityInstantiator,
|
||||
Map<String, Object> data,
|
||||
|
|
|
@ -27,7 +27,7 @@ public final class MiddleSimpleComponentMapper extends AbstractMiddleComponentMa
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public Object mapToObjectFromFullMap(
|
||||
EntityInstantiator entityInstantiator, Map<String, Object> data,
|
||||
Object dataObject, Number revision) {
|
||||
|
|
|
@ -26,7 +26,7 @@ public final class MiddleStraightComponentMapper extends AbstractMiddleComponent
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
public Object mapToObjectFromFullMap(
|
||||
EntityInstantiator entityInstantiator, Map<String, Object> data,
|
||||
Object dataObject, Number revision) {
|
||||
|
|
|
@ -42,7 +42,7 @@ public class ArrayCollectionInitializor extends AbstractCollectionInitializor<Ob
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
protected void addToCollection(Object[] collection, Object collectionRow) {
|
||||
final Object elementData = ( (List) collectionRow ).get( elementComponentData.getComponentIndex() );
|
||||
final Object element = elementComponentData.getComponentMapper().mapToObjectFromFullMap(
|
||||
|
|
|
@ -44,7 +44,7 @@ public class BasicCollectionInitializor<T extends Collection> extends AbstractCo
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
protected void addToCollection(T collection, Object collectionRow) {
|
||||
// collectionRow will be the actual object if retrieved from audit relation or middle table
|
||||
// otherwise it will be a List
|
||||
|
|
|
@ -41,7 +41,7 @@ public class ListCollectionInitializor extends AbstractCollectionInitializor<Lis
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
protected List initializeCollection(int size) {
|
||||
// There are two types of List collections that this class may generate
|
||||
//
|
||||
|
@ -61,7 +61,7 @@ public class ListCollectionInitializor extends AbstractCollectionInitializor<Lis
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
protected void addToCollection(List collection, Object collectionRow) {
|
||||
// collectionRow will be the actual object if retrieved from audit relation or middle table
|
||||
// otherwise it will be a List
|
||||
|
|
|
@ -46,7 +46,7 @@ public class MapCollectionInitializor<T extends Map> extends AbstractCollectionI
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@SuppressWarnings("unchecked")
|
||||
protected void addToCollection(T collection, Object collectionRow) {
|
||||
// collectionRow will be the actual object if retrieved from audit relation or middle table
|
||||
// otherwise it will be a List
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue