Skip to content

Commit f8f9a13

Browse files
committed
Test clean up
1 parent 30d91ea commit f8f9a13

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/test/java/com/fasterxml/jackson/databind/objectid/Employee.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
77
import com.fasterxml.jackson.annotation.JsonIdentityReference;
8+
import com.fasterxml.jackson.annotation.JsonIgnore;
89
import 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;

src/test/java/com/fasterxml/jackson/databind/objectid/TestObjectIdWithPolymorphic.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)