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.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<>();

View File

@ -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);
}
}