Skip to content

Commit

Permalink
Update to Flightpath 0.0.3, fixes J8 dep
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Jan 2, 2016
1 parent 4267584 commit 162ca75
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -26,7 +26,7 @@ public AnnotationLocator(Class<? extends Annotation> annotation) {
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);
Expand Down

0 comments on commit 162ca75

Please sign in to comment.