Fix SupplierHandler checking for AbstractTypeMapper instead of AbstractTypeSupplier

This commit is contained in:
2025-11-23 16:36:48 +01:00
parent fbc14d0503
commit f6fc65a370
@@ -40,8 +40,8 @@ public final class SupplierHandler {
if (method.getParameterCount() != 0) {
throw new UnsupportedOperationException("Supplier method must have no parameters");
}
if (!AbstractTypeMapper.class.isAssignableFrom(method.getReturnType())) {
throw new UnsupportedOperationException("Supplier method must return AbstractTypeMapper");
if (!AbstractTypeSupplier.class.isAssignableFrom(method.getReturnType())) {
throw new UnsupportedOperationException("Supplier method must return AbstractTypeSupplier");
}
if (annotation.value() != null && !annotation.value().isEmpty()) {