if (!parameterTypes[0].isAssignableFrom(targetedEventType)) {
errors.put(method, String.format(
"Dynamic subscriber: %s's Method: %s's argument is not compatible with the interested event type %s.",
subscriber.getClass(), method.toGenericString(), targetedEventType.getName()));
}
} else if (subscribeAnnotation.batchingStrategy() != Subscribe.BatchingStrategy.None) {
if (!(Iterable.class.isAssignableFrom(parameterTypes[0]))) {
errors.put(method, String.format(
"Subscriber: %s's Method: %s is annotated with batching strategy: %s but does not accept an Iterable argument.",
subscriber.getClass(), method.toGenericString(),
subscribeAnnotation.batchingStrategy()));