forked from SteamWar/SteamWar
Fix SupplierHandler checking for AbstractTypeMapper instead of AbstractTypeSupplier
This commit is contained in:
+2
-2
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user