From 69db311a8b8050d81e6221cfa00d8a69822d31b0 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Sat, 16 Mar 2019 16:13:24 +0100 Subject: [PATCH] Fix wrong return type --- .../java/org/jivesoftware/smackx/omemo/OmemoManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoManager.java b/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoManager.java index b187a6681..3f0764fe7 100644 --- a/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoManager.java +++ b/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoManager.java @@ -30,13 +30,13 @@ import java.util.Set; import java.util.SortedSet; import java.util.TreeMap; import java.util.WeakHashMap; -import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; import org.jivesoftware.smack.AbstractConnectionListener; import org.jivesoftware.smack.Manager; +import org.jivesoftware.smack.ScheduledAction; import org.jivesoftware.smack.SmackException; import org.jivesoftware.smack.StanzaListener; import org.jivesoftware.smack.XMPPConnection; @@ -107,7 +107,7 @@ public final class OmemoManager extends Manager { private OmemoTrustCallback trustCallback; - private ScheduledFuture postponingPreKeyDeletion; + private ScheduledAction postponingPreKeyDeletion; private BareJid ownJid; private Integer deviceId; @@ -290,7 +290,7 @@ public final class OmemoManager extends Manager { * @param millis period in milliseconds from now, in which preKeys are not deleted immediately. * @return scheduled future */ - public ScheduledFuture temporarilyPostponePreKeyDeletion(long millis) { + private ScheduledAction temporarilyPostponePreKeyDeletion(long millis) { final OmemoStore store = getOmemoService().getOmemoStoreBackend(); final OmemoDevice userDevice = getOwnDevice();