1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-21 22:02:06 +01:00

Make asyncGo() and schedule() static

in AbstractXMPPConnection.
This commit is contained in:
Florian Schmaus 2018-04-07 21:11:55 +02:00
parent 0e15a903d9
commit 0a99291d59

View file

@ -1746,11 +1746,11 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
return getClass().getSimpleName() + '[' + localEndpointString + "] (" + getConnectionCounter() + ')';
}
protected final void asyncGo(Runnable runnable) {
protected static void asyncGo(Runnable runnable) {
CACHED_EXECUTOR_SERVICE.execute(runnable);
}
protected final ScheduledFuture<?> schedule(Runnable runnable, long delay, TimeUnit unit) {
protected static ScheduledFuture<?> schedule(Runnable runnable, long delay, TimeUnit unit) {
return SCHEDULED_EXECUTOR_SERVICE.schedule(runnable, delay, unit);
}
}