HHH-18675: Revert to java 11
This commit is contained in:
parent
83ec629ed1
commit
eaf0ba3aee
|
@ -280,8 +280,8 @@ public class MetadataContext {
|
|||
if ( !property.isGeneric() ) {
|
||||
final PersistentAttribute<X, ?> concreteAttribute = factoryFunction.apply( entityType, property );
|
||||
if ( concreteAttribute != null ) {
|
||||
@SuppressWarnings("unchecked") final AttributeContainer<X> attributeContainer = (AttributeContainer<X>) entityType;
|
||||
attributeContainer.getInFlightAccess().addConcreteGenericAttribute( concreteAttribute );
|
||||
//noinspection unchecked
|
||||
( (AttributeContainer<X>) entityType ).getInFlightAccess().addConcreteGenericAttribute( concreteAttribute );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@ import java.util.HashSet;
|
|||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.containsInAnyOrder;
|
||||
|
@ -102,7 +103,7 @@ public class ManyToManyNonGenericTest {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "node [%s] parent of %s".formatted(id, children.stream().map(n -> n.id).toList());
|
||||
return String.format("node [%s] parent of %s", id, children.stream().map(n -> n.id).collect(Collectors.toList()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue