HHH-18675: Revert to java 11

This commit is contained in:
Leon Schenk 2024-10-02 21:01:07 +02:00 committed by Christian Beikov
parent 83ec629ed1
commit eaf0ba3aee
2 changed files with 4 additions and 3 deletions

View File

@ -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 );
}
}
}

View File

@ -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()));
}
}
}