HHH-18675: Fix for Hibernate codestyle
This commit is contained in:
parent
bc4804ab09
commit
0a1a9f757d
|
@ -55,7 +55,6 @@ import java.util.Set;
|
||||||
import java.util.function.BiFunction;
|
import java.util.function.BiFunction;
|
||||||
|
|
||||||
import static java.util.Collections.unmodifiableMap;
|
import static java.util.Collections.unmodifiableMap;
|
||||||
import static java.util.Objects.nonNull;
|
|
||||||
import static org.hibernate.metamodel.internal.InjectionHelper.injectField;
|
import static org.hibernate.metamodel.internal.InjectionHelper.injectField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -274,7 +273,7 @@ public class MetadataContext {
|
||||||
attribute = factoryFunction.apply( entityType, genericProperty );
|
attribute = factoryFunction.apply( entityType, genericProperty );
|
||||||
if ( !property.isGeneric() ) {
|
if ( !property.isGeneric() ) {
|
||||||
final PersistentAttribute<X, ?> concreteAttribute = factoryFunction.apply( entityType, property );
|
final PersistentAttribute<X, ?> concreteAttribute = factoryFunction.apply( entityType, property );
|
||||||
if (nonNull(concreteAttribute)) {
|
if ( concreteAttribute != null ) {
|
||||||
@SuppressWarnings("unchecked") final AttributeContainer<X> attributeContainer = (AttributeContainer<X>) entityType;
|
@SuppressWarnings("unchecked") final AttributeContainer<X> attributeContainer = (AttributeContainer<X>) entityType;
|
||||||
attributeContainer.getInFlightAccess().addConcreteGenericAttribute( concreteAttribute );
|
attributeContainer.getInFlightAccess().addConcreteGenericAttribute( concreteAttribute );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue