mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 20:42:06 +01:00
Fix ugly code
This commit is contained in:
parent
1b1268cdc6
commit
d589bdd1a0
2 changed files with 1 additions and 5 deletions
|
@ -27,8 +27,6 @@ import java.security.NoSuchAlgorithmException;
|
|||
import java.security.NoSuchProviderException;
|
||||
import java.util.HashMap;
|
||||
import java.util.WeakHashMap;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import javax.crypto.NoSuchPaddingException;
|
||||
|
||||
import org.jivesoftware.smack.Manager;
|
||||
|
@ -60,8 +58,6 @@ import org.jxmpp.jid.FullJid;
|
|||
*/
|
||||
public final class JetManager extends Manager implements JingleDescriptionManager {
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(JetManager.class.getName());
|
||||
|
||||
private static final WeakHashMap<XMPPConnection, JetManager> INSTANCES = new WeakHashMap<>();
|
||||
private static final HashMap<String, JingleEnvelopeManager> envelopeManagers = new HashMap<>();
|
||||
private static final HashMap<String, ExtensionElementProvider<?>> envelopeProviders = new HashMap<>();
|
||||
|
|
|
@ -133,7 +133,7 @@ public class JetSecurity extends JingleSecurity<JetSecurityElement> {
|
|||
try {
|
||||
decryptEncryptionKey(method, sender);
|
||||
} catch (InterruptedException | NoSuchPaddingException | InvalidKeyException | NoSuchProviderException | InvalidAlgorithmParameterException | NoSuchAlgorithmException | SmackException.NoResponseException | SmackException.NotConnectedException | XMPPException.XMPPErrorException | JingleEnvelopeManager.JingleEncryptionException e) {
|
||||
LOGGER.log(Level.SEVERE, "Could not decrypt security key: " + e, e);
|
||||
LOGGER.log(Level.SEVERE, "Could not decrypt security key.", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue