Skip to content

Commit 673acb1

Browse files
authored
Remove usage of List.getFirst() from test (#4375)
getFirst is added in JDK 21, and we are targeting source/binary compatibility with JDK 17
1 parent a8ce88f commit 673acb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fdb-relational-core/src/test/java/com/apple/foundationdb/relational/recordlayer/query/functions/UserDefinedMacroFunctionBuilderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void buildFunctionWithSingleStringParameter() {
8585

8686
final var arguments = ImmutableList.of(LiteralValue.ofScalar("hello"));
8787
assertThat(macroIdentityFunction.encapsulate(arguments))
88-
.isEqualTo(arguments.getFirst());
88+
.isEqualTo(arguments.get(0));
8989
}
9090

9191
@Test

0 commit comments

Comments
 (0)