Skip to content

Commit f7a8473

Browse files
committed
HHH-18675: Revert unchecked suppression
1 parent af057c5 commit f7a8473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetadataContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ public Map<String, IdentifiableDomainType<?>> getIdentifiableTypesByName() {
280280
if ( !property.isGeneric() ) {
281281
final PersistentAttribute<X, ?> concreteAttribute = factoryFunction.apply( entityType, property );
282282
if ( concreteAttribute != null ) {
283-
@SuppressWarnings("unchecked") final AttributeContainer<X> attributeContainer = (AttributeContainer<X>) entityType;
284-
attributeContainer.getInFlightAccess().addConcreteGenericAttribute( concreteAttribute );
283+
//noinspection unchecked
284+
( (AttributeContainer<X>) entityType ).getInFlightAccess().addConcreteGenericAttribute( concreteAttribute );
285285
}
286286
}
287287
}

0 commit comments

Comments
 (0)