1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-18 00:41:08 +01:00

Fix minor codestyle issues

This commit is contained in:
Paul Schaub 2017-12-13 23:10:11 +01:00 committed by Florian Schmaus
parent 200f90ffdc
commit cb18056613
422 changed files with 1404 additions and 1444 deletions

View file

@ -39,7 +39,7 @@ import org.jxmpp.jid.Jid;
public final class EntityTimeManager extends Manager {
private static final Map<XMPPConnection, EntityTimeManager> INSTANCES = new WeakHashMap<XMPPConnection, EntityTimeManager>();
private static final Map<XMPPConnection, EntityTimeManager> INSTANCES = new WeakHashMap<>();
private static boolean autoEnable = true;
@ -113,7 +113,6 @@ public final class EntityTimeManager extends Manager {
Time request = new Time();
// TODO Add Time(Jid) constructor and use this constructor instead
request.setTo(jid);
Time response = (Time) connection().createStanzaCollectorAndSend(request).nextResultOrThrow();
return response;
return connection().createStanzaCollectorAndSend(request).nextResultOrThrow();
}
}