File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed 
src/test/java/tools/jackson/dataformat/xml Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11package  tools .jackson .dataformat .xml .jdk17 ;
22
3+ import  org .junit .jupiter .api .Test ;
4+ 
35import  java .util .List ;
46import  java .util .stream .Collectors ;
57import  java .util .stream .Stream ;
68
7- import  org .junit .jupiter .api .Test ;
8- 
99import  tools .jackson .dataformat .xml .XmlMapper ;
1010import  tools .jackson .dataformat .xml .XmlTestUtil ;
1111
@@ -16,7 +16,8 @@ public class Java17CollectionsTest extends XmlTestUtil
1616    private  final  XmlMapper  _xmlMapper  = new  XmlMapper ();
1717
1818    @ Test 
19-     public  void  testStreamOf () throws  Exception 
19+     public  void  testStreamOf ()
20+             throws  Exception 
2021    {
2122        List <String > input  = Stream .of ("a" , "b" , "c" ).collect (Collectors .toList ());
2223
@@ -31,5 +32,4 @@ public void testStreamOf() throws Exception
3132        deser  = _xmlMapper .readValue (ser , List .class );
3233        assertEquals (input , deser );
3334    }
34- 
3535}
Original file line number Diff line number Diff line change 11package  tools .jackson .dataformat .xml .lists ;
22
33import  java .util .*;
4- import  static  java .util .Arrays .asList ;
54
65import  org .junit .jupiter .api .Test ;
76
@@ -129,7 +128,7 @@ public void testStringList() throws Exception
129128
130129	private  void  _stringListRoundtrip (ObjectMapper  mapper , boolean  shouldBeNull ) throws  Exception 
131130	{
132- 		List <String > list  = asList (TEST_DATA );
131+ 		List <String > list  = Arrays . asList (TEST_DATA );
133132
134133		// serialize to string 
135134		String  xml  = mapper .writeValueAsString (list );
@@ -166,7 +165,7 @@ public void testStringListPojo() throws Exception
166165	private  void  _stringListPojoRoundtrip (ObjectMapper  mapper , boolean  shouldBeNull ) throws  Exception 
167166	{
168167		ListPojo  listPojo  =  new  ListPojo ();
169- 		listPojo .setList (asList (TEST_DATA ));
168+ 		listPojo .setList (Arrays . asList (TEST_DATA ));
170169
171170		// serialize to string 
172171		String  xml  = mapper .writeValueAsString (listPojo );
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments