[java] Moving StaticInitializerCoercer in front of Map coercer.
This order is importand for the classes that extent guava ForwardingMap and have fromJson method
@@ -102,6 +102,8 @@ private JsonTypeCoercer(Stream<TypeCoercer<?>> coercers) {
//noinspection unchecked
builder.add(new CollectionCoercer<>(Set.class, this, Collectors.toCollection(HashSet::new)));
+ builder.add(new StaticInitializerCoercer());
+
builder.add(new MapCoercer<>(
Map.class,
this,
@@ -110,8 +112,6 @@ private JsonTypeCoercer(Stream<TypeCoercer<?>> coercers) {
// If the requested type is exactly "Object", do some guess work
builder.add(new ObjectCoercer(this));
- builder.add(new StaticInitializerCoercer());
-
// Order matters here: we want this to be the last called coercer
builder.add(new InstanceCoercer(this));
