Improvement on the ListenersManager

This commit is contained in:
jacek.wolniewicz
2024-07-03 23:43:23 +02:00
parent fa855fa3aa
commit 91fc32b20b

View File

@@ -89,7 +89,6 @@ public class TikTokListenersManager implements ListenersManager {
.filter(e -> e.isAnnotationPresent(TikTokEventObserver.class)) .filter(e -> e.isAnnotationPresent(TikTokEventObserver.class))
.filter(e -> e.getParameterCount() >= 1) .filter(e -> e.getParameterCount() >= 1)
.map(method -> getSingleMethodInfo(listener, method)) .map(method -> getSingleMethodInfo(listener, method))
.sorted(Comparator.comparingInt(a -> a.getEventType().getName().length()))
.sorted(Comparator.comparingInt(a -> a.getPriority().priorityValue)) .sorted(Comparator.comparingInt(a -> a.getPriority().priorityValue))
.toList(); .toList();
} }