Skip to content

Commit 25b88f1

Browse files
author
Hà Trung Kiên
committed
use get(0) instead of new jdk built in getFirst
1 parent a2c762b commit 25b88f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/annotations/beanvalidation/LazyPropertiesFetchTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void testLazyCollectionFetchDoesntDependOnEachOther(SessionFactoryScope scope) {
8484
MutableEntity fetched = session.find( MutableEntity.class, 2L );
8585
inspector.assertExecutedCount( 1 );
8686

87-
Association asso = fetched.lazyAssociation.getFirst();
87+
Association asso = fetched.lazyAssociation.get( 0 );
8888
inspector.assertExecutedCount( 2 );
8989

9090
asso.mutableField = 5;

0 commit comments

Comments
 (0)