mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Make asyncGo() and schedule() static
in AbstractXMPPConnection.
This commit is contained in:
parent
0e15a903d9
commit
0a99291d59
1 changed files with 2 additions and 2 deletions
|
@ -1746,11 +1746,11 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
||||||
return getClass().getSimpleName() + '[' + localEndpointString + "] (" + getConnectionCounter() + ')';
|
return getClass().getSimpleName() + '[' + localEndpointString + "] (" + getConnectionCounter() + ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected final void asyncGo(Runnable runnable) {
|
protected static void asyncGo(Runnable runnable) {
|
||||||
CACHED_EXECUTOR_SERVICE.execute(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);
|
return SCHEDULED_EXECUTOR_SERVICE.schedule(runnable, delay, unit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue