2424import java .util .Iterator ;
2525import java .util .List ;
2626import java .util .StringTokenizer ;
27+ import java .util .stream .Collectors ;
2728import net .sf .jsqlparser .JSQLParserException ;
2829import net .sf .jsqlparser .expression .LongValue ;
2930import net .sf .jsqlparser .expression .operators .relational .GreaterThan ;
@@ -1261,7 +1262,7 @@ void testPostgreSqlDeclarativePartitionParentsIssue2522() throws JSQLParserExcep
12611262
12621263 assertEquals (TablePartitioning .Type .RANGE , partitioning .getType ());
12631264 assertEquals (List .of ("tenant_id" , "happened_at" ), partitioning .getExpressionList ()
1264- .stream ().map (Object ::toString ).toList ());
1265+ .stream ().map (Object ::toString ).collect ( Collectors . toList () ));
12651266
12661267 assertSqlCanBeParsedAndDeparsed (
12671268 "CREATE TABLE pg_list_parent (region text) PARTITION BY LIST (region)" ,
@@ -1280,9 +1281,9 @@ void testPostgreSqlDeclarativePartitionChildrenIssue2522() throws JSQLParserExce
12801281 assertEquals ("pg_range_parent" , range .getPartitionOf ().getName ());
12811282 assertEquals (PartitionBound .Type .RANGE , range .getPartitionBound ().getType ());
12821283 assertEquals (List .of ("1" , "MINVALUE" ), range .getPartitionBound ().getFromExpressions ()
1283- .stream ().map (Object ::toString ).toList ());
1284+ .stream ().map (Object ::toString ).collect ( Collectors . toList () ));
12841285 assertEquals (List .of ("2" , "MAXVALUE" ), range .getPartitionBound ().getToExpressions ()
1285- .stream ().map (Object ::toString ).toList ());
1286+ .stream ().map (Object ::toString ).collect ( Collectors . toList () ));
12861287
12871288 String listSql = "CREATE TABLE pg_list_eu_us PARTITION OF pg_list_parent "
12881289 + "FOR VALUES IN ('eu', 'us')" ;
0 commit comments