mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-26 12:37:58 +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() + ')';
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue