jackson can only instantiate non-static inner class by using default, no-argument constructor
// Just add static keyword to the inner class
class ExampleClass {
static class InnerClass {
public int getCount() {
return 42;
}
}
}
Are there any code examples left?
New code examples in category Java