Skip to content

Commit

Permalink
Fix logging of polyfills in SerializationPlugin (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
prdoyle authored Jan 25, 2024
2 parents 9edb736 + f3ede21 commit 678484a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ public final List<Object> parameterValueList(Class<?> nodeClass, Map<String, Obj
throw new DeserializationException("Missing id field for object at " + path);
}
} else if (polyfillIfAny != null) {
LOGGER.info("{} used polyfill value for {}.{}", getClass().getSimpleName(), nodeClass.getSimpleName(), name);
parameterValues.add(polyfillIfAny);
} else {
throw new DeserializationException("Missing field \"" + name + "\" at " + path);
}
}
} else if (implicitReference == null) {
LOGGER.info("{} used polyfill value for {}.{}", getClass().getSimpleName(), nodeClass.getSimpleName(), name);
parameterValues.add(value);
} else {
throw new DeserializationException("Unexpected field \"" + name + "\" for implicit reference");
Expand Down

0 comments on commit 678484a

Please sign in to comment.