diff --git a/jackson/src/test/java/org/baeldung/jackson/exception/Zoo.java b/jackson/src/test/java/org/baeldung/jackson/exception/Zoo.java index be6d3965ba..79c24569f2 100644 --- a/jackson/src/test/java/org/baeldung/jackson/exception/Zoo.java +++ b/jackson/src/test/java/org/baeldung/jackson/exception/Zoo.java @@ -2,12 +2,15 @@ package org.baeldung.jackson.exception; public class Zoo { public Animal animal; + + public Zoo() { + } } abstract class Animal { public String name; - protected Animal() { + public Animal() { } } diff --git a/jackson/src/test/java/org/baeldung/jackson/exception/ZooConfigured.java b/jackson/src/test/java/org/baeldung/jackson/exception/ZooConfigured.java index d76de5ffe2..776b702acb 100644 --- a/jackson/src/test/java/org/baeldung/jackson/exception/ZooConfigured.java +++ b/jackson/src/test/java/org/baeldung/jackson/exception/ZooConfigured.java @@ -4,13 +4,16 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; public class ZooConfigured { public AnimalConfigured animal; + + public ZooConfigured() { + } } @JsonDeserialize(as = CatConfigured.class) abstract class AnimalConfigured { public String name; - protected AnimalConfigured() { + public AnimalConfigured() { } }