Skip to content

Commit c2be33d

Browse files
committed
Replace JDK 21 method usage to allow running/compiling on JDK 17
1 parent c269054 commit c2be33d

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/mapping/access/ElementCollectionInOneToManyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void hhh13721Test(SessionFactoryScope scope) {
7171
assertEquals( "author", author.name );
7272
assertEquals( 1, author.books.size() );
7373

74-
Book book = author.books.getFirst();
74+
Book book = author.books.get( 0 );
7575
assertEquals( "book", book.name );
7676
assertEquals( 3, book.chapters.size() );
7777

0 commit comments

Comments
 (0)