mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 16:59:39 -05:00
Improvement on the ListenersManager
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user