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
1 changed files with 2 additions and 2 deletions

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);
}
}