diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SynchronizationPoint.java b/smack-core/src/main/java/org/jivesoftware/smack/SynchronizationPoint.java index c52242350..fa87848a0 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/SynchronizationPoint.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/SynchronizationPoint.java @@ -160,16 +160,22 @@ public class SynchronizationPoint { } } + /** + * Deprecated + * @deprecated use {@link #reportFailure(Exception)} instead. + */ + @Deprecated public void reportFailure() { reportFailure(null); } /** - * Report this synchronization point as failed because of the given exception. + * Report this synchronization point as failed because of the given exception. The {@code failureException} must be set. * * @param failureException the exception causing this synchronization point to fail. */ public void reportFailure(E failureException) { + assert failureException != null; connectionLock.lock(); try { state = State.Failure;