File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
src/test/java/com/fasterxml/jackson/databind/deser Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 13
13
import com .fasterxml .jackson .databind .SerializationFeature ;
14
14
15
15
import java .io .IOException ;
16
+ import java .util .ArrayList ;
16
17
import java .util .List ;
17
18
18
19
/**
@@ -32,16 +33,13 @@ public void testForwardRef() throws IOException {
32
33
" \" frc\" : \" willBeForwardReferenced\" ," +
33
34
" \" yac\" : {" +
34
35
" \" @type\" : \" TestForwardReference$YetAnotherClass\" ," +
35
- " \" frc\" : [ {" +
36
- " \" @type\" : \" Two\" ," +
37
- " \" id\" : \" anotherInstance\" " +
38
- " }, {" +
36
+ " \" frc\" : {" +
39
37
" \" @type\" : \" One\" ," +
40
38
" \" id\" : \" willBeForwardReferenced\" " +
41
- " } ] ," +
42
- " \" id\" : \" anId\" \n " +
43
- " },\n " +
44
- " \" id\" : \" ForwardReferenceContainerClass1\" \n " +
39
+ " }," +
40
+ " \" id\" : \" anId\" " +
41
+ " }," +
42
+ " \" id\" : \" ForwardReferenceContainerClass1\" " +
45
43
"}" , ForwardReferenceContainerClass .class );
46
44
47
45
@@ -72,7 +70,7 @@ public void setId(String id) {
72
70
private static class YetAnotherClass
73
71
{
74
72
public YetAnotherClass () {}
75
- public List < ForwardReferenceClass > frc ;
73
+ public ForwardReferenceClass frc ;
76
74
public String id ;
77
75
}
78
76
You can’t perform that action at this time.
0 commit comments