File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/test/java/com/fasterxml/jackson/databind/objectid Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 55
66import com .fasterxml .jackson .annotation .JsonIdentityInfo ;
77import com .fasterxml .jackson .annotation .JsonIdentityReference ;
8+ import com .fasterxml .jackson .annotation .JsonIgnore ;
89import com .fasterxml .jackson .annotation .ObjectIdGenerators ;
910
1011// Value class used by ObjectId tests
@@ -22,6 +23,8 @@ public class Employee {
2223 public List <Employee > reports ;
2324
2425 public Employee () { }
26+
27+ @ JsonIgnore // so default constructor is used
2528 public Employee (int id , String name , Employee manager ) {
2629 this .id = id ;
2730 this .name = name ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ static abstract class Base
2525 public Base next ;
2626
2727 public Base () { this (0 ); }
28- public Base (int v ) {
28+ protected Base (int v ) {
2929 value = v ;
3030 }
3131 }
@@ -35,7 +35,7 @@ static class Impl extends Base
3535 public int extra ;
3636
3737 public Impl () { this (0 , 0 ); }
38- public Impl (int v , int e ) {
38+ protected Impl (int v , int e ) {
3939 super (v );
4040 extra = e ;
4141 }
@@ -49,7 +49,7 @@ public static class Base811 {
4949 public Base811 owner ;
5050
5151 protected Base811 () {}
52- public Base811 (Process owner ) {
52+ protected Base811 (Process owner ) {
5353 this .owner = owner ;
5454 if (owner == null ) {
5555 id = 0 ;
You can’t perform that action at this time.
0 commit comments