Fix Value detection in ValueConverter selection (#896)

This commit is contained in:
altrisi authored and GitHub committed 2021-05-31 21:59:15 -03:00
1 parent 8d181823d4
commit 8f5667c244
1 file changed
+1 -1
@@ -137,7 +137,7 @@ public interface ValueConverter<R>
}
// Class only checks
if (type.isAssignableFrom(Value.class))
if (Value.class.isAssignableFrom(type))
return Objects.requireNonNull(ValueCaster.get(type), "Value subclass " + type + " is not registered. Register it in ValueCaster to use it");
// if (type == LazyValue.class) // No longer supported
// return (ValueConverter<R>) Params.LAZY_VALUE_IDENTITY;