From 0a99291d59f0adfe99a01e834173c97de4d2a293 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 7 Apr 2018 21:11:55 +0200 Subject: [PATCH] Make asyncGo() and schedule() static in AbstractXMPPConnection. --- .../java/org/jivesoftware/smack/AbstractXMPPConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java index 9c3c5bc78..446ce7502 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java @@ -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); } }