Update to Flightpath 0.0.3, fixes J8 dep

This commit is contained in:
Bernhard Bonigl committed 2016-01-02 19:20:23 +01:00
1 parent 4267584e00
commit 162ca75102
1 file changed
+1 -1
@@ -26,7 +26,7 @@ public class AnnotationLocator implements ISubscriberLocator {
public @Nonnull Map<Class, Set<Method>> findSubscribers(Object obj) {
Map<Class, Set<Method>> methods = new HashMap<Class, Set<Method>>();
for (Method m : obj.getClass().getMethods()) {
if (m.isAnnotationPresent(annotation) && m.getParameterCount() == 1) {
if (m.isAnnotationPresent(annotation) && m.getParameterTypes().length == 1) {
Class param = m.getParameterTypes()[0];
if (!methods.containsKey(param)) methods.put(param, new HashSet<Method>());
methods.get(param).add(m);