From d40fd5294ec50258dfdd23cf42ddea068d66b1d4 Mon Sep 17 00:00:00 2001 From: Dylan Mulligan Date: Wed, 15 Nov 2023 17:39:28 -0500 Subject: [PATCH] added missing imports --- .../src/main/java/messenger/Messenger.java | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/patchfinder/src/main/java/messenger/Messenger.java b/patchfinder/src/main/java/messenger/Messenger.java index e163856d9..48e07bc01 100644 --- a/patchfinder/src/main/java/messenger/Messenger.java +++ b/patchfinder/src/main/java/messenger/Messenger.java @@ -35,6 +35,8 @@ import java.io.IOException; import java.nio.charset.StandardCharsets; +import java.security.KeyManagementException; +import java.security.NoSuchAlgorithmException; import java.sql.ResultSet; import java.util.*; import java.util.concurrent.*; @@ -69,13 +71,13 @@ public Messenger(String host, String vhost, int port, String username, String pa this.factory.setUsername(username); this.factory.setPassword(password); - try { - factory.useSslProtocol(); - } catch (NoSuchAlgorithmException e) { - throw new RuntimeException(e); - } catch (KeyManagementException e) { - throw new RuntimeException(e); - } +// try { +// factory.useSslProtocol(); +// } catch (NoSuchAlgorithmException e) { +// throw new RuntimeException(e); +// } catch (KeyManagementException e) { +// throw new RuntimeException(e); +// } this.inputQueue = inputQueue; } @@ -85,13 +87,13 @@ protected Messenger(ConnectionFactory factory, String inputQueue) { logger.info("Initializing Messenger..."); this.factory = factory; - try { - factory.useSslProtocol(); - } catch (NoSuchAlgorithmException e) { - throw new RuntimeException(e); - } catch (KeyManagementException e) { - throw new RuntimeException(e); - } +// try { +// factory.useSslProtocol(); +// } catch (NoSuchAlgorithmException e) { +// throw new RuntimeException(e); +// } catch (KeyManagementException e) { +// throw new RuntimeException(e); +// } this.inputQueue = inputQueue; }