Fix Value detection in ValueConverter selection (#896)
This commit is contained in:
1 parent
8d181823d4
commit
8f5667c244
1 file changed
+1
-1
@@ -137,7 +137,7 @@ public interface ValueConverter<R>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Class only checks
|
// 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");
|
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
|
// if (type == LazyValue.class) // No longer supported
|
||||||
// return (ValueConverter<R>) Params.LAZY_VALUE_IDENTITY;
|
// return (ValueConverter<R>) Params.LAZY_VALUE_IDENTITY;
|
||||||
|
|||||||
Reference in new issue
Block a user