No longer null out all unused fields when deserialising an instance from JSON
There's code to do it, and there's a comment that indicates
that it's entirely deliberate, but there's no rationale for
acting like this, and it wipes out default values. Removing.
@@ -90,16 +90,6 @@ public boolean test(Class aClass) {
jsonInput.endObject();
- // all unset fields should be set to null
- allWriters.values().stream()
- .filter(w -> ! usedWriters.contains(w))
- .forEach(w -> {
- try {
- w.writer.accept(instance, null);
- } catch (IllegalArgumentException ignore) {
- }
- });
-
return instance;
} catch (ReflectiveOperationException e) {
throw new JsonException(e);
