Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b769eb9

Browse files
committed
Merge remote-tracking branch 'origin/develop-1.8.2' into develop-1.8.2
2 parents 3e555a5 + 3168688 commit b769eb9

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
package io.github.jwdeveloper.tiktok.annotations;
2+
23
/**
34
* HIGHEST 1
45
* HIGH 2
56
* NORMAL 3
67
* LOW 4
78
* LOWEST 5
89
*/
9-
1010
public enum Priority {
1111
LOWEST(2), LOW(1), NORMAL(0), HIGH(-1), HIGHEST(-2);
1212

13-
public int priorityValue;
13+
public final int value;
1414

1515
Priority(int value) {
16-
this.priorityValue = value;
16+
this.value = value;
1717
}
1818
}

API/src/main/java/io/github/jwdeveloper/tiktok/listener/TikTokEventListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
*/
7070
//TODO I think this interface can be removed, since we are using,
7171
//annotation @TikTokEventHandler to check methods that are events
72-
@Deprecated(forRemoval = true, since = "This interface is not longer needed, please remove it from your class")
72+
@Deprecated(forRemoval = true, since = "1.8.1 (This interface is not longer needed, please remove it from your class)")
7373
public interface TikTokEventListener {
7474

7575
}

Client/src/main/java/io/github/jwdeveloper/tiktok/listener/TikTokListenersManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import io.github.jwdeveloper.tiktok.data.events.common.TikTokEvent;
2929
import io.github.jwdeveloper.tiktok.exceptions.TikTokEventListenerMethodException;
3030
import io.github.jwdeveloper.tiktok.exceptions.TikTokLiveException;
31-
import io.github.jwdeveloper.tiktok.live.LiveClient;
3231
import io.github.jwdeveloper.tiktok.live.LiveEventsHandler;
3332
import io.github.jwdeveloper.tiktok.live.builder.EventConsumer;
3433

@@ -89,7 +88,7 @@ private List<ListenerMethodInfo> getMethodsInfo(Object listener) {
8988
.filter(e -> e.isAnnotationPresent(TikTokEventObserver.class))
9089
.filter(e -> e.getParameterCount() >= 1)
9190
.map(method -> getSingleMethodInfo(listener, method))
92-
.sorted(Comparator.comparingInt(a -> a.getPriority().priorityValue))
91+
.sorted(Comparator.comparingInt(a -> a.getPriority().value))
9392
.toList();
9493
}
9594

0 commit comments

Comments
 (0)