File tree Expand file tree Collapse file tree
src/test/java/net/sf/jsqlparser/statement/analyze Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616import java .io .StringReader ;
1717import java .util .List ;
18+ import java .util .stream .Collectors ;
1819import net .sf .jsqlparser .JSQLParserException ;
1920import net .sf .jsqlparser .parser .CCJSqlParserManager ;
2021import net .sf .jsqlparser .schema .Column ;
@@ -46,7 +47,7 @@ public void testMySqlAnalyzeTableList() throws JSQLParserException {
4647 Analyze analyze = (Analyze ) parserManager .parse (new StringReader (sql ));
4748
4849 assertEquals (List .of ("t2" , "t3" ), analyze .getTables ().stream ()
49- .map (Table ::getFullyQualifiedName ).toList ());
50+ .map (Table ::getFullyQualifiedName ).collect ( Collectors . toList () ));
5051 assertEquals ("t2" , analyze .getTable ().getFullyQualifiedName ());
5152 assertEquals (sql , analyze .toString ());
5253
@@ -61,7 +62,7 @@ public void testMySqlAnalyzeUpdateHistogram() throws JSQLParserException {
6162
6263 assertEquals (Analyze .HistogramAction .UPDATE , analyze .getHistogramAction ());
6364 assertEquals (List .of ("c1" , "c2" ), analyze .getHistogramColumns ().stream ()
64- .map (Column ::getFullyQualifiedName ).toList ());
65+ .map (Column ::getFullyQualifiedName ).collect ( Collectors . toList () ));
6566 assertEquals (64 , analyze .getHistogramBucketCount ());
6667 }
6768
You can’t perform that action at this time.
0 commit comments