1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-24 04:52:05 +01:00

Fix ugly code

This commit is contained in:
vanitasvitae 2017-08-28 11:08:47 +02:00
parent 1b1268cdc6
commit d589bdd1a0
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 1 additions and 5 deletions

View file

@ -27,8 +27,6 @@ import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException; import java.security.NoSuchProviderException;
import java.util.HashMap; import java.util.HashMap;
import java.util.WeakHashMap; import java.util.WeakHashMap;
import java.util.logging.Logger;
import javax.crypto.NoSuchPaddingException; import javax.crypto.NoSuchPaddingException;
import org.jivesoftware.smack.Manager; import org.jivesoftware.smack.Manager;
@ -60,8 +58,6 @@ import org.jxmpp.jid.FullJid;
*/ */
public final class JetManager extends Manager implements JingleDescriptionManager { 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 WeakHashMap<XMPPConnection, JetManager> INSTANCES = new WeakHashMap<>();
private static final HashMap<String, JingleEnvelopeManager> envelopeManagers = new HashMap<>(); private static final HashMap<String, JingleEnvelopeManager> envelopeManagers = new HashMap<>();
private static final HashMap<String, ExtensionElementProvider<?>> envelopeProviders = new HashMap<>(); private static final HashMap<String, ExtensionElementProvider<?>> envelopeProviders = new HashMap<>();

View file

@ -133,7 +133,7 @@ public class JetSecurity extends JingleSecurity<JetSecurityElement> {
try { try {
decryptEncryptionKey(method, sender); decryptEncryptionKey(method, sender);
} catch (InterruptedException | NoSuchPaddingException | InvalidKeyException | NoSuchProviderException | InvalidAlgorithmParameterException | NoSuchAlgorithmException | SmackException.NoResponseException | SmackException.NotConnectedException | XMPPException.XMPPErrorException | JingleEnvelopeManager.JingleEncryptionException e) { } 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);
} }
} }